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

@ -140,6 +140,7 @@ namespace FreeSql
if (itemType == typeof(object)) return;
if (itemType.FullName.Contains("FreeSqlLazyEntity__")) itemType = itemType.BaseType;
if (Orm.CodeFirst.GetTableByEntity(itemType)?.Primarys.Any() != true) return;
if (itemType.GetConstructor(Type.EmptyTypes) == null) return;
if (item is BaseEntity<TEntity> == false) return;
}