mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
-
This commit is contained in:
@@ -77,7 +77,11 @@ namespace OrmTest.Demo
|
||||
.EnableDiffLogEvent(new { title = "delete student" })
|
||||
.ExecuteCommand();
|
||||
|
||||
}
|
||||
|
||||
//primary key guid
|
||||
db.Insertable(new DataTestInfo2() { Bool1=true, Bool2=false, PK=Guid.NewGuid(), Text1="a" })
|
||||
.EnableDiffLogEvent(new { title = "add DataTestInfo2" })
|
||||
.ExecuteReturnIdentity();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace OrmTest.Models
|
||||
/// Desc:
|
||||
/// Default:
|
||||
/// Nullable:False
|
||||
/// </summary>
|
||||
/// </summary>
|
||||
public Guid PK {get;set;}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user