Replies: 2 comments 2 replies
-
最开始是可以截断的,后面他们老报错就取消强制截断了。 异常,可以使用 fsql.Aop.ConfigEntityProperty 事件处理。 fsql.Aop.ConfigEntityProperty += (_, e) =>
{
if (e.Property.GetCustomAttribute<ColumnAttribute>()?.DbType......)
throw new Exception...
}; |
Beta Was this translation helpful? Give feedback.
1 reply
-
fsql.Aop.AuditValue 事件看一下文档,可以判断长度截断 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[JsonProperty, Column(DbType = "varchar(10)")] public string item_code { get; set; }
希望设置号DbType(有长度信息)以后
可以有选项设置数据超过时候的处理方式:
1、截断后插入
2、抛异常
Beta Was this translation helpful? Give feedback.
All reactions