mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Add unit test
This commit is contained in:
@@ -82,9 +82,15 @@ namespace OrmTest
|
||||
db.Insertable(new CodeFloatddfa1a2() { xx = DateTimeOffset.Now }).ExecuteCommand();
|
||||
db.Insertable(new List<CodeFloatddfa1a2> { new CodeFloatddfa1a2() { xx = DateTimeOffset.Now }, new CodeFloatddfa1a2() { xx = DateTimeOffset.Now } }).ExecuteCommand();
|
||||
db.CodeFirst.InitTables<Area>();
|
||||
db.CodeFirst.InitTables<CodeFirstadfa>();
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
}
|
||||
}
|
||||
public class CodeFirstadfa
|
||||
{
|
||||
[SugarColumn(IsNullable = true, DefaultValue = "CURRENT_TIMESTAMP")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
|
||||
[SugarTable("TNL_Tunnel1")]
|
||||
public class Area
|
||||
|
Reference in New Issue
Block a user