Update demo

This commit is contained in:
sunkaixuan 2024-03-21 05:59:12 +08:00
parent 2f4b400fcc
commit 134d637fd0

View File

@ -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---");
}
}
}