mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update README.md
This commit is contained in:
parent
1806596016
commit
c9e334dcfa
@ -248,6 +248,14 @@ var t3 = db.Ado.GetDataTable("select 1 as id");
|
||||
|
||||
var t5 = db.SqlQueryable<Student>("select * from student").Where(it=>it.id>0).ToPageList(1, 2,ref count);
|
||||
var t6 = db.SqlQueryable<dynamic>("select * from student").ToPageList(1, 2,ref count);// return List<dynamic>
|
||||
|
||||
//Use StoredProcedure
|
||||
var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",new{p1=1,p2=null});
|
||||
|
||||
//output
|
||||
var p11 = new SugarParameter("@p1", "1");
|
||||
var p22 = new SugarParameter("@p2", null, true);//isOutput=true
|
||||
var dt2 = db.Ado.UseStoredProcedure().GetDataTable("sp_school",p11,p22);
|
||||
```
|
||||
|
||||
### 1.9 Where
|
||||
|
Loading…
Reference in New Issue
Block a user