mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
unit user test case
This commit is contained in:
@@ -11,7 +11,7 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
var db =NewUnitTest.Db;
|
var db =NewUnitTest.Db;
|
||||||
db.CodeFirst.InitTables(typeof(TestA));
|
db.CodeFirst.InitTables(typeof(TestA));
|
||||||
db.DbMaintenance.TruncateTable<TestA>();
|
db.DbMaintenance.TruncateTable<TestA>();
|
||||||
db.Insertable(new List<TestA>() { new TestA() { Id = 1, Count = 1.212f }, new TestA() { Id = 1, Count = 1.212f } }).ExecuteReturnSnowflakeId ();
|
db.Insertable(new List<TestA>() { new TestA() { Id = 1, Count = 1.212f }, new TestA() { Id = 1, Count = 1.212f } }).ExecuteReturnSnowflakeId ();
|
||||||
@@ -40,7 +40,7 @@ namespace OrmTest
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 容量或数量
|
/// 容量或数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnDescription = "容量或数量")]
|
[SugarColumn(ColumnDescription = "容量或数量",Length =10,DecimalDigits =6)]
|
||||||
public float Count { get; set; } = 0;
|
public float Count { get; set; } = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user