mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 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:
		@@ -66,7 +66,7 @@ namespace FreeSql.DataAnnotations {
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// 数据库默认值
 | 
			
		||||
		/// </summary>
 | 
			
		||||
		public object DbDefautValue { get; set; }
 | 
			
		||||
		public object DbDefautValue { get; internal set; }
 | 
			
		||||
 | 
			
		||||
		/// <summary>
 | 
			
		||||
		/// 类型映射,比如:可将 enum 属性映射成 typeof(string)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								FreeSql/DataAnnotations/NavigateAttribute.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								FreeSql/DataAnnotations/NavigateAttribute.cs
									
									
									
									
									
										Normal 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;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user