Update demo

This commit is contained in:
sunkaixuan 2025-06-22 13:31:34 +08:00
parent bd17e7c9df
commit f4e51d8ff1

View File

@ -49,8 +49,16 @@ namespace OrmTest
db.Insertable(new List<TestNull>() { new TestNull() { Id = 2}, new TestNull() { Id = 3 } }).ExecuteCommand();
var list4=db.Queryable<TestNull>().ToList();
db.Deleteable(list4).ExecuteCommand();
db.CodeFirst.InitTables<Unitadfasfs>();
db.Insertable(new Unitadfasfs() { shorts = new byte[] { 1 } }).ExecuteCommand();
var list5=db.Queryable<Unitadfasfs>().ToList();
Console.WriteLine("#### CodeFirst end ####");
}
public class Unitadfasfs
{
[SugarColumn(ColumnDataType = "Array(UInt8)", IsArray=true)]
public byte[] shorts { get; set; }
}
public class TestNull
{
[SugarColumn(IsPrimaryKey =true)]