mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-17 17:41:28 +08:00
Unit test
This commit is contained in:
@@ -49,9 +49,15 @@ namespace OrmTest
|
|||||||
Db.CodeFirst.InitTables<UnitUUID1XX>();
|
Db.CodeFirst.InitTables<UnitUUID1XX>();
|
||||||
Db.Insertable(new UnitUUID1XX() { ID = Guid.NewGuid() }).ExecuteCommand();
|
Db.Insertable(new UnitUUID1XX() { ID = Guid.NewGuid() }).ExecuteCommand();
|
||||||
var x1 = Db.Queryable<UnitUUID1XX>().ToList();
|
var x1 = Db.Queryable<UnitUUID1XX>().ToList();
|
||||||
|
Db.CodeFirst.InitTables<Unitaaar>();
|
||||||
|
Db.Insertable(new Unitaaar() { arr = null }).ExecuteCommand();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public class Unitaaar
|
||||||
|
{
|
||||||
|
[SugarColumn(ColumnDataType = "text []", IsArray = true, IsNullable = true)]
|
||||||
|
public string[] arr { get; set; }
|
||||||
|
}
|
||||||
public class UnitUUID1XX
|
public class UnitUUID1XX
|
||||||
{
|
{
|
||||||
[SugarColumn(ColumnDataType ="uuid")]
|
[SugarColumn(ColumnDataType ="uuid")]
|
||||||
|
|||||||
Reference in New Issue
Block a user