update

28810
2019-11-25 14:25:30 +08:00
parent ba3603bdcf
commit 64e34766a0
2 changed files with 17 additions and 3 deletions

@@ -79,6 +79,18 @@ class Topic {
}
}
## 服务器时间(ServerTime)
```csharp
class Topic {
[Column(ServerTime = DateTimeKind.Utc)]
public DateTime CreateTime { get; set; }
}
```
使用数据库时间执行插入数据,一但设置了这个特性,插入的时候设置属性值是无效的。
## 可空(Nullable)
```csharp
@@ -159,9 +171,7 @@ class EnumTestMap {
public enum ToStringMapEnum { 中国人, abc, 香港 }
```
应该不需要解释了吧?
BigInteger 都可以映射使用了,但请注意:仅仅是 CURD 方便, Equals == 判断可以使用,无法实现 + - * / 等操作;
BigInteger 也可以映射使用,但请注意:仅仅是 CURD 方便, Equals == 判断可以使用,无法实现 + - * / 等操作;
v0.9.15 版本还可以将值对象映射成 typeof(string),安装扩展包:

@@ -1,6 +1,10 @@
完整版本:年数-月-日-当日版本号FreeSql、FreeSql.Repository、FreeSql.DbContext 版本号相同。
## v0.12.4
- 增加 实体特性 [Column(ServerTime = DateTimeKind.Utc)] 使用数据库时间执行插入数据;
## v0.12.3
- 增加 ICodeFirst.IsGenerateCommandParameterWithLambda 选项,开启表达式解析的命令参数化;[wiki](https://github.com/2881099/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0#%E5%91%BD%E4%BB%A4%E5%8F%82%E6%95%B0%E5%8C%96v0121)