- 修复 EfFluentApi 一个参数类型问题;

This commit is contained in:
28810
2020-02-28 18:09:32 +08:00
parent 1e88e8add2
commit ce7140783e
2 changed files with 5 additions and 1 deletions

View File

@ -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