Skip to content
sunkaixuan edited this page May 4, 2019 · 5 revisions

Description

Primary keys are updated when they exist, inserts are not present, and performance is not as good as Insertable and updateable.

1.single

db.Saveable<Student>(entity).ExecuteReturnEntity();

2.List

db.Saveable<Student>(entities).ExecuteReturnEntity();
3.Other
db.Saveable<Student>(new Student() { Name = "" })
                  .InsertColumns(it=>it.Name)
                  .UpdateColumns(it=>new { it.Name,it.CreateTime }
                  .ExecuteReturnEntity();
Clone this wiki locally