mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add demo
This commit is contained in:
parent
8625415398
commit
2e94087244
@ -32,9 +32,16 @@ namespace OrmTest
|
||||
it.RoleIds ).First();
|
||||
var list3= db.Queryable<CodeFirstArrary>().Select(it =>
|
||||
it.RoleIds).FirstAsync().GetAwaiter().GetResult();
|
||||
db.CodeFirst.InitTables<CodeFirstByte>();
|
||||
db.Insertable(new CodeFirstByte() { array = new byte[] { 1, 2, 4, 5 } }).ExecuteCommand();
|
||||
var list4=db.Queryable<CodeFirstByte>().ToList();
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
}
|
||||
}
|
||||
public class CodeFirstByte
|
||||
{
|
||||
public byte[] array { get; set; }
|
||||
}
|
||||
public class CodeFirstArrary
|
||||
{
|
||||
[SugarColumn(ColumnDescription = "绑定的角色ids", ColumnDataType = "int8[]", IsArray = true)]
|
||||
|
Loading…
Reference in New Issue
Block a user