Browse Source

Update Demo

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
d39694bd19
  1. 4
      Src/Asp.Net/SqlServerTest/Demo/Demo1_SqlSugarClient.cs

4
Src/Asp.Net/SqlServerTest/Demo/Demo1_SqlSugarClient.cs

@ -72,13 +72,13 @@ namespace OrmTest
orderDb.UpdateRange(InsertObjs);
orderDb.Update(it => new Order() { Name = "a", }, it => it.Id == 1);
orderDb.AsUpdateable(insertObj).UpdateColumns(it => new { it.Name }).ExecuteCommand();
Console.WriteLine("#### DbContext End ####");
//Use Inherit DbContext
OrderDal dal = new OrderDal();
var data=dal.GetById(1);
var list = dal.GetList();
Console.WriteLine("#### DbContext End ####");
}
private static void CustomAttribute()

Loading…
Cancel
Save