- 修复 Firebird Embedded 2.5 不支持 boolean 的 bug;

This commit is contained in:
28810
2020-10-18 20:23:54 +08:00
parent b91fe2ca4d
commit 3812a1736a
2 changed files with 194 additions and 160 deletions

View File

@ -41,6 +41,13 @@ namespace FreeSql.Firebird
this.DbFirst = new FirebirdDbFirst(this, this.InternalCommonUtils, this.InternalCommonExpression);
this.CodeFirst = new FirebirdCodeFirst(this, this.InternalCommonUtils, this.InternalCommonExpression);
if ((this.Ado as FirebirdAdo).IsFirebird2_5)
this.Aop.ConfigEntityProperty += (_, e) =>
{
if (e.Property.PropertyType.NullableTypeOrThis() == typeof(bool))
e.ModifyResult.MapType = typeof(short);
};
}
internal CommonUtils InternalCommonUtils { get; }