-
Notifications
You must be signed in to change notification settings - Fork 1.3k
8.Saveable
sunkaixuan edited this page May 4, 2019
·
5 revisions
Primary keys are updated when they exist, inserts are not present, and performance is not as good as Insertable and updateable.
db.Saveable<Student>(entity).ExecuteReturnEntity();
db.Saveable<Student>(entities).ExecuteReturnEntity();
db.Saveable<Student>(new Student() { Name = "" })
.InsertColumns(it=>it.Name)
.UpdateColumns(it=>new { it.Name,it.CreateTime }
.ExecuteReturnEntity();