mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
7eb1373176
commit
f482c72424
@ -29,8 +29,9 @@ namespace OrmTest
|
|||||||
RoleIds=new long[] { 1,2}
|
RoleIds=new long[] { 1,2}
|
||||||
}).ExecuteCommand();
|
}).ExecuteCommand();
|
||||||
var list2=db.Queryable<CodeFirstArrary>().Select(it =>
|
var list2=db.Queryable<CodeFirstArrary>().Select(it =>
|
||||||
it.RoleIds ).ToList();
|
it.RoleIds ).First();
|
||||||
|
var list3= db.Queryable<CodeFirstArrary>().Select(it =>
|
||||||
|
it.RoleIds).FirstAsync().GetAwaiter().GetResult();
|
||||||
Console.WriteLine("#### CodeFirst end ####");
|
Console.WriteLine("#### CodeFirst end ####");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user