We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f361b9 commit bd423faCopy full SHA for bd423fa
Provider/src/FirebirdSql.Data.FirebirdClient/Common/TypeHelper.cs
@@ -395,6 +395,11 @@ public static Type GetTypeFromDbDataType(DbDataType type)
395
396
public static FbDbType GetFbDataTypeFromType(Type type)
397
{
398
+ if (type.IsEnum)
399
+ {
400
+ return GetFbDataTypeFromType(Enum.GetUnderlyingType(type));
401
+ }
402
+
403
if (type == typeof(System.String) || type == typeof(System.DBNull))
404
405
return FbDbType.VarChar;
0 commit comments