Update Sqlite

This commit is contained in:
sunkaixuan 2017-07-10 00:55:18 +08:00
parent c9ac1962c1
commit b68e26b17a
2 changed files with 5 additions and 1 deletions

View File

@ -175,7 +175,11 @@ namespace SqlSugar
#region Sqlite Logic
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite)
{
if (bindPropertyType == PubConst.IntType)
if (bindPropertyType.IsEnum())
{
method = isNullableType ? getConvertEnum_Null.MakeGenericMethod(bindPropertyType) : getEnum.MakeGenericMethod(bindPropertyType);
}
else if (bindPropertyType == PubConst.IntType)
{
method = isNullableType ? getConvertInt32 : getInt32;
}