mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 EfFluentApi 一个参数类型问题;
This commit is contained in:
		@@ -36,6 +36,10 @@ namespace FreeSql.Extensions.EfCoreFluentApi
 | 
			
		||||
                //多对多
 | 
			
		||||
                eb.HasMany(a => a.Tags).WithMany(a => a.Songs, typeof(Song_tag));
 | 
			
		||||
            });
 | 
			
		||||
            cf.Entity<SongType>(eb =>
 | 
			
		||||
            {
 | 
			
		||||
                eb.HasMany(a => a.Songs).WithOne(a => a.Type).HasForeignKey( a => a.TypeId)
 | 
			
		||||
            });
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public class SongType
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user