Add unit test

This commit is contained in:
sunkaixuan
2023-06-20 21:22:09 +08:00
parent a0ecc1e1c7
commit e18ce0faa7

View File

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