Browse Source

Update README.md

pull/12/MERGE
sunkaixuan 7 years ago
committed by GitHub
parent
commit
165afa4459
  1. 13
      README.md

13
README.md

@ -306,13 +306,14 @@ public int TestId { get; set; }
## 6. Use Tran ## 6. Use Tran
```c ```c
var result = db.Ado.UseTran(() =>
{
var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",new{p1=1,p2=null}); var beginCount = db.Queryable<Student>().ToList();
db.Ado.ExecuteCommand("delete student");
//output var endCount = db.Queryable<Student>().Count();
var p11 = new SugarParameter("@p1", "1"); throw new Exception("error haha");
var p22 = new SugarParameter("@p2", null, true);//isOutput=true })
var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",p11,p22);
``` ```
## 7. Use Store Procedure ## 7. Use Store Procedure
```c ```c

Loading…
Cancel
Save