mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 补充 Navigate(ManyToMany = typeof(中间表)) 多对多自定义配置;
This commit is contained in:
		@@ -7,13 +7,20 @@ namespace FreeSql.DataAnnotations
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 导航属性,手工绑定
 | 
			
		||||
        /// 手工绑定 OneToMany、ManyToOne 导航关系
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public string Bind { get; set; }
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 手工绑定 ManyToMany 导航关系
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public Type ManyToMany { get; set; }
 | 
			
		||||
 | 
			
		||||
        public NavigateAttribute(string bind)
 | 
			
		||||
        {
 | 
			
		||||
            this.Bind = bind;
 | 
			
		||||
        }
 | 
			
		||||
        public NavigateAttribute()
 | 
			
		||||
        {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user