mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 StringLength/MaxLength 对 byte[] 的支持;
This commit is contained in:
@ -149,6 +149,26 @@ namespace base_entity
|
||||
|
||||
var repo = BaseEntity.Orm.Select<TestConfig>().Limit(10).ToList();
|
||||
|
||||
|
||||
//void ConfigEntityProperty(object sender, FreeSql.Aop.ConfigEntityPropertyEventArgs e)
|
||||
//{
|
||||
// if (e.Property.PropertyType == typeof(byte[]))
|
||||
// {
|
||||
// var orm = sender as IFreeSql;
|
||||
// switch (orm.Ado.DataType)
|
||||
// {
|
||||
// case DataType.SqlServer:
|
||||
// e.ModifyResult.DbType = "image";
|
||||
// break;
|
||||
// case DataType.MySql:
|
||||
// e.ModifyResult.DbType = "longblob";
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//fsql.Aop.ConfigEntityProperty += ConfigEntityProperty;
|
||||
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
using (var uow = BaseEntity.Orm.CreateUnitOfWork())
|
||||
|
Reference in New Issue
Block a user