- 增加 NavigateAttribute 配置导航关系;

- 修复 LinqToSql 方法,开启自动迁移时,迁移了无关类的 bug;
- 修复 Oracle DbFirst date(7) 类型未处理的 bug;#57
- 修复 AsSelect().Any() 未给其他条件时,产生 null bug;
- 增加 FreeSql.Extensions.LazyLoading 对 .net 4.5 的支持;
- 优化 MySql CodeFirst 增加 DateTime 迁移后,默认值为 0000-00-00 导致读取失败的 bug;
- 优化 LazyLoading 友好错误提示;
This commit is contained in:
28810
2019-05-31 20:30:09 +08:00
parent b13b501131
commit 451b6c9769
27 changed files with 407 additions and 361 deletions

View File

@ -66,7 +66,7 @@ namespace FreeSql.DataAnnotations {
/// <summary>
/// 数据库默认值
/// </summary>
public object DbDefautValue { get; set; }
public object DbDefautValue { get; internal set; }
/// <summary>
/// 类型映射,比如:可将 enum 属性映射成 typeof(string)

View File

@ -0,0 +1,16 @@
using System;
using System.Linq;
namespace FreeSql.DataAnnotations {
public class NavigateAttribute : Attribute {
/// <summary>
/// 导航属性,手工绑定
/// </summary>
public string Bind { get; set; }
public NavigateAttribute(string bind) {
this.Bind = bind;
}
}
}