This commit is contained in:
sunkaixuan
2018-11-25 15:45:24 +08:00
parent 8d7caf6a5c
commit d1782a3bbe
3 changed files with 9 additions and 5 deletions

View File

@@ -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();
}
}
}

View File

@@ -16,7 +16,7 @@ namespace OrmTest.Models
/// Desc:
/// Default:
/// Nullable:False
/// </summary>
/// </summary>
public Guid PK {get;set;}
/// <summary>