mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 聚合根仓储 InsertOrUpdate OneToMany 只插入一条记录的 bug;
This commit is contained in:
@ -106,7 +106,7 @@ namespace FreeSql
|
||||
bool LocalCanInsert(Type entityType, object entity, bool isadd)
|
||||
{
|
||||
var stateKey = rootRepository.Orm.GetEntityKeyString(entityType, entity, false);
|
||||
if (stateKey == null) return true;
|
||||
if (string.IsNullOrEmpty(stateKey)) return true;
|
||||
if (ignores.TryGetValue(entityType, out var stateKeys) == false)
|
||||
{
|
||||
if (isadd)
|
||||
|
Reference in New Issue
Block a user