We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1、单个指定映射
[Column(IsPrimary = true, DbType = "raw(16)", MapType = typeof(byte[]))] public Guid ID { get; set; }
如果不指定 MapType 还是会默认映射 char(36)
2、统一映射处理
全局统一映射为 byte[] 方法,通过 Aop 拦截:
fsql.Aop.ConfigEntityProperty += new EventHandler<Aop.ConfigEntityPropertyEventArgs>((s, e) => { if (e.Property.PropertyType == typeof(Guid) || e.Property.PropertyType == typeof(Guid?)) { e.ModifyResult.MapType = typeof(byte[]); e.ModifyResult.DbType = "raw(16)"; } });
The text was updated successfully, but these errors were encountered:
- 完善 MapType byte[] 对 Contains/Parse 表达式解析的处理;#178
0dec7ff
v1.1.0-preview2 #179 #178 #177
fa349a2
No branches or pull requests
1、单个指定映射
2、统一映射处理
全局统一映射为 byte[] 方法,通过 Aop 拦截:
The text was updated successfully, but these errors were encountered: