This commit is contained in:
sunkaixuan 2022-11-14 00:30:28 +08:00
parent 8625415398
commit 2e94087244

View File

@ -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)]