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