mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-27 19:41:17 +08:00
Update demo
This commit is contained in:
parent
bd17e7c9df
commit
f4e51d8ff1
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user