mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 修复 Firebird Embedded 2.5 不支持 boolean 的 bug;
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user