mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update demo
This commit is contained in:
parent
2f4b400fcc
commit
134d637fd0
@ -20,8 +20,19 @@ namespace OrmTest
|
||||
});
|
||||
|
||||
var list=db.Queryable<Order>().Take(2).ToList();
|
||||
Console.WriteLine(db.Queryable<Order>().Count());
|
||||
var i=db.RestApi().BulkCopy(list);
|
||||
var i2 = db.RestApi().ExecuteCommand("select 1");
|
||||
Console.WriteLine(db.Queryable<Order>().Count());
|
||||
Console.WriteLine("--2---");
|
||||
var i2 = db.RestApi().BulkCopy(list.First());
|
||||
Console.WriteLine(db.Queryable<Order>().Count());
|
||||
Console.WriteLine("--1---");
|
||||
var i3 = db.RestApi().BulkCopyAsync(list).GetAwaiter().GetResult();
|
||||
Console.WriteLine(db.Queryable<Order>().Count());
|
||||
Console.WriteLine("--2---");
|
||||
var i4 = db.RestApi().BulkCopyAsync(list.First()).GetAwaiter().GetResult();
|
||||
Console.WriteLine(db.Queryable<Order>().Count());
|
||||
Console.WriteLine("--1---");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user