update

28810
2019-12-05 21:23:15 +08:00
parent c9e65c09dd
commit 65f636d04b
2 changed files with 8 additions and 15 deletions

@@ -57,7 +57,9 @@ class Topic {
可以在类型上指定 NOT NULL也可以通过 [Column(IsNullable = false)] 设置;
> 0.9.12 版本增加了对 MaxLength 特性的解析,避免字符串常用时的麻烦,上面的 varchar(128) 可改写成:
> 0.12.8 版本增加了 [Column(StringLength = 128)] 针对字符串的长度设置;
> 0.9.12 版本增加了对 MaxLength 特性的解析,上面的 varchar(128) 可改写成:
```csharp
class Topic {
@@ -66,19 +68,6 @@ class Topic {
}
```
说明:由于内部按名称反射查找特性的,所以 MaxLengthAttribute 可以在任意地方定义。
该特性通常定义在 System.ComponentModel.DataAnnotations.MaxLengthAttribute。
如果找不到该类,可自行在项目中定义名称为 MaxLengthAttribute 的特性类,如下:
public class MaxLengthAttribute : Attribute
{
public int Length { get; }
public MaxLengthAttribute(int length)
{
this.Length = length;
}
}
## 服务器时间(ServerTime)
```csharp

@@ -1,9 +1,13 @@
完整版本:年数-月-日-当日版本号FreeSql、FreeSql.Repository、FreeSql.DbContext 版本号相同。
## v0.12.8(预告)
## v0.12.8
- 优化 IncludeMany 级联查询支持异步适配(之前是同步方式);
- 优化 MaxLength 功能,并且增加 [Column(StringLength = 100)] 同等的特性功能;
- 优化 GlobalFilter Apply 自动重命名表达式参数名,避免内容重复问题;
- 修复 表达式解析 Guid.NewGuid() 的错误;
- 补充 GetTableByEntity 当属性名或特性名重复时的友好错误提示;
## v0.12.7