mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-27 18:25:47 +08:00
- 完善 [Column(ServerTime = Utc)] 特性,对 Update 时也能生效;
This commit is contained in:
@@ -121,8 +121,11 @@ namespace FreeSql.Tests
|
||||
|
||||
public byte[] Binary { get; set; }
|
||||
|
||||
[Column(ServerTime = DateTimeKind.Utc, CanUpdate = false)]
|
||||
public DateTime 创建时间 { get; set; }
|
||||
|
||||
[Column(ServerTime = DateTimeKind.Utc)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime 更新时间 { get; set; }
|
||||
|
||||
[Column(InsertValueSql = "'123'")]
|
||||
public string InsertValue2 { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user