mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Update unit test
This commit is contained in:
parent
adf1692fd2
commit
24e3e9ab51
@ -50,6 +50,13 @@ namespace OrmTest
|
|||||||
Name = "a"
|
Name = "a"
|
||||||
},true).Where(it=>it.Id==1).ExecuteCommand();
|
},true).Where(it=>it.Id==1).ExecuteCommand();
|
||||||
|
|
||||||
|
db.Updateable<ORDER>().SetColumns(it => new ORDER()
|
||||||
|
{
|
||||||
|
CustomId = 1,
|
||||||
|
Price = 1,
|
||||||
|
Name = "a"
|
||||||
|
}, true).Where(it => it.Id == 1).ExecuteCommand();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Order
|
public class Order
|
||||||
@ -76,7 +83,7 @@ namespace OrmTest
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public decimal Price { get; set; }
|
public decimal Price { get; set; }
|
||||||
[SugarColumn(InsertSql = "'2020-1-1'")]
|
[SugarColumn(InsertSql = "'2020-1-1'",UpdateSql ="'2022-1-1'")]
|
||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
[SugarColumn(IsNullable = true)]
|
[SugarColumn(IsNullable = true)]
|
||||||
public int CustomId { get; set; }
|
public int CustomId { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user