Browse Source

-

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

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

@ -27,7 +27,8 @@ namespace OrmTest
private static void DbContext()
{
Console.WriteLine("");
Console.WriteLine("#### DbContext Start ####");
var insertObj = new Order { Name = "jack", CreateTime=DateTime.Now };
var InsertObjs = new Order[] { insertObj };
@ -71,6 +72,7 @@ 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 ####");
}
private static void CustomAttribute()

Loading…
Cancel
Save