## v0.12.12 #150

This commit is contained in:
28810
2019-12-09 09:10:41 +08:00
parent 65e3ed0091
commit a33cad02cc
16 changed files with 27 additions and 23 deletions

View File

@ -79,14 +79,14 @@ namespace FreeSql
var itemType = item.GetType();
if (itemType == typeof(object)) return;
if (itemType.FullName.StartsWith("Submission#")) itemType = itemType.BaseType;
if (_db.Orm.CodeFirst.GetTableByEntity(itemType) == null) return;
if (_db.Orm.CodeFirst.GetTableByEntity(itemType)?.Primarys.Any() != true) return;
var dbset = _db.Set(itemType);
dbset?.GetType().GetMethod("TrackToList", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(dbset, new object[] { list });
return;
}
return;
}
if (_table?.Primarys.Any() != true) return;
foreach (var item in ls)
{
var key = _db.Orm.GetEntityKeyString(_entityType, item, false);