mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-09-21 02:42:41 +08:00
- 增加 Repository/DbContext SaveMany 方法实现一对多,子数据的完整保存;
- 调整 SaveManyToMany 方法名为 SaveMany;
This commit is contained in:
@@ -130,9 +130,9 @@ namespace FreeSql
|
||||
return entity;
|
||||
}
|
||||
|
||||
public void SaveManyToMany(TEntity entity, string propertyName)
|
||||
public void SaveMany(TEntity entity, string propertyName)
|
||||
{
|
||||
_dbset.SaveManyToMany(entity, propertyName);
|
||||
_dbset.SaveMany(entity, propertyName);
|
||||
_db.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user