v3.2.666-preview20220726 #1193

This commit is contained in:
2881099
2022-07-25 15:19:44 +08:00
parent 9b23da6581
commit 9767656a87
5 changed files with 280 additions and 185 deletions

View File

@ -100,7 +100,7 @@ namespace FreeSql
if (itemType == typeof(object)) return;
if (itemType.FullName.Contains("FreeSqlLazyEntity__")) itemType = itemType.BaseType;
if (_db.OrmOriginal.CodeFirst.GetTableByEntity(itemType)?.Primarys.Any() != true) return;
if (itemType.GetConstructor(System.Type.EmptyTypes) == null) return;
if (itemType.GetConstructor(Type.EmptyTypes) == null) return;
var dbset = _db.Set(itemType);
dbset?.GetType().GetMethod("TrackToList", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(dbset, new object[] { list });
return;