|
|
@ -129,6 +129,14 @@ namespace OrmTest |
|
|
|
{ |
|
|
|
throw new Exception("Queryable"); |
|
|
|
} |
|
|
|
|
|
|
|
Db.Insertable(new Order() { CreateTime=DateTime.Now, CustomId=1, Name="a",Price=1 }).ExecuteCommand(); |
|
|
|
var sa = Db.SqlQueryable<Order>("SELECT * FroM [ORDER] where id in (@id) "); |
|
|
|
sa.AddParameters(new List<SugarParameter>() { |
|
|
|
new SugarParameter("id",new int[]{ 1}) |
|
|
|
}); |
|
|
|
int i = 0; |
|
|
|
var salist= sa.ToPageList(1,2,ref i); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|