- 修复 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

@ -271,7 +271,7 @@ namespace FreeSql.Extensions.EfCoreFluentApi
_tf.ConfigEntity<T2>(eb2 => eb2.Navigate(_withOneProperty, _selfBind));
return this;
}
public HasManyFluent<T2> HasForeignKey(Expression<Func<T, object>> foreignKey)
public HasManyFluent<T2> HasForeignKey(Expression<Func<T2, object>> foreignKey)
{
if (foreignKey?.Body == null) throw new ArgumentException("参数错误 foreignKey 不能为 null");
var exp = foreignKey.Body;