mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 09:44:39 +08:00
PgSql Updateable.SetColumn datetime== null bug
This commit is contained in:
@@ -54,8 +54,20 @@ namespace OrmTest
|
||||
UValidate.Check(sql.Key, @"UPDATE ""diary"" SET
|
||||
""typeid"" = @Const0 WHERE ( ""id"" = @ID1 )", "Updateable");
|
||||
|
||||
Db.Updateable<OrderModel>().SetColumns(it => new OrderModel()
|
||||
{
|
||||
CreateTime = null
|
||||
}).Where(it => it.Id == 1).ExecuteCommand();
|
||||
|
||||
}
|
||||
}
|
||||
[SugarTable("order")]
|
||||
public class OrderModel
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey =true)]
|
||||
public int Id { get; set; }
|
||||
public DateTime? CreateTime { get; set; }
|
||||
}
|
||||
public class UnitSaveDiary
|
||||
{
|
||||
public int ID { get; set; }
|
||||
|
Reference in New Issue
Block a user