mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-05 16:00:52 +08:00
Updated 骚操作 (markdown)
2
骚操作.md
2
骚操作.md
@@ -429,7 +429,7 @@ fsql.Aop.CurdAfter += (s, e) => {
|
||||
fsql.Aop.AuditValue += (s, e) => {
|
||||
if (e.Column.CsType == typeof(long) &&
|
||||
e.Property.GetCustomAttribute<SnowflakeAttribute>(false) != null &&
|
||||
e.Value?.ToString() == 0)
|
||||
e.Value?.ToString() == "0")
|
||||
e.Value = new Snowflake().GetId();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user