- 增加 pgsql 扩展方法 ISelect<T>.DistinctOn;#1680

This commit is contained in:
2881099
2023-12-08 16:07:49 +08:00
parent efedfc4cab
commit 139c19e224
3 changed files with 36 additions and 291 deletions

View File

@ -101,7 +101,7 @@ namespace FreeSql.Internal.CommonProvider
if (objects == null) return;
var syncObjects = objects.Where(a => a.tableSchema?.Type != null &&
(
a.tableSchema.Type.Name == "DynamicDbContext" && a.tableSchema.Columns.Any()
a.tableSchema.Type == typeof(object) && a.tableSchema.Columns.Any()
||
a.tableSchema.Type != typeof(object) && _dicSycedGetOrAdd(a.tableSchema.Type).ContainsKey(GetTableNameLowerOrUpper(a.tableName)) == false
) &&