mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update demo
This commit is contained in:
parent
36569817e9
commit
e5cacb08ca
@ -63,7 +63,7 @@ namespace OrmTest
|
||||
}
|
||||
|
||||
var list = new List<Users>();
|
||||
for (var i = 0; i < 10000; i++)
|
||||
for (var i = 0; i < 100000; i++)
|
||||
{
|
||||
|
||||
list.Add(new Users
|
||||
@ -74,8 +74,9 @@ namespace OrmTest
|
||||
password = "161718",
|
||||
});
|
||||
}
|
||||
db.Insertable<Users>(list).ExecuteCommand();
|
||||
db.Insertable<Users>(list).ExecuteReturnSnowflakeId();
|
||||
|
||||
var list2 = db.Queryable<Users>().ToList();
|
||||
|
||||
Console.WriteLine("#### Examples End ####");
|
||||
Console.WriteLine("#### Examples End ####");
|
||||
|
@ -10,6 +10,8 @@ namespace OrmTest
|
||||
public class Users
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public long Sid { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
[SqlSugar.SugarColumn(IsNullable = true)]
|
||||
|
Loading…
Reference in New Issue
Block a user