mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +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