- 增加 BaseEntity SaveMany 方法;

This commit is contained in:
28810
2020-03-06 13:13:47 +08:00
parent b71e7c1b23
commit ab52728f7f
7 changed files with 113 additions and 7 deletions

View File

@ -104,6 +104,18 @@ namespace FreeSql
return this.Repository.InsertOrUpdate(this as TEntity);
}
/// <summary>
/// 【完整】保存导航属性,子表
/// </summary>
/// <param name="navigatePropertyName">导航属性名</param>
public virtual void SaveMany(string navigatePropertyName)
{
if (this.Repository == null)
this.Repository = Orm.GetRepository<TEntity>();
this.Repository.SaveMany(this as TEntity, navigatePropertyName);
}
}
}