mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 18:34:55 +08:00
Update README.md
This commit is contained in:
12
README.md
12
README.md
@@ -274,6 +274,18 @@ var ageP= new SugarParameter("@age", null, true);//isOutput=true
|
|||||||
var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",nameP,ageP);
|
var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",nameP,ageP);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 7.Saveable
|
||||||
|
Insert or Update
|
||||||
|
```cs
|
||||||
|
db.Saveable<Student>(entity).ExecuteReturnEntity();
|
||||||
|
db.Saveable<Student>(new Student() { Name = "" })
|
||||||
|
.InsertColumns(it=>it.Name)
|
||||||
|
.UpdateColumns(it=>new { it.Name,it.CreateTime }
|
||||||
|
.ExecuteReturnEntity();
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
##### Priority level:
|
##### Priority level:
|
||||||
AS>Add>Attribute
|
AS>Add>Attribute
|
||||||
### 5.1 Add
|
### 5.1 Add
|
||||||
|
|||||||
Reference in New Issue
Block a user