Skip to content

Commit

Permalink
Query: Full support for entity splitting
Browse files Browse the repository at this point in the history
Resolves #620
  • Loading branch information
smitpatel committed Sep 15, 2022
1 parent dfbc7ff commit bf10425
Show file tree
Hide file tree
Showing 19 changed files with 4,694 additions and 1,554 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ public static IEnumerable<IProperty> GetNonPrincipalSharedNonPkProperties(this I
continue;
}

var propertyMappings = table.FindColumn(property)!.PropertyMappings;
var column = table.FindColumn(property);
if (column == null)
{
continue;
}

var propertyMappings = column.PropertyMappings;
if (propertyMappings.Count() > 1
&& propertyMappings.Any(pm => principalEntityTypes.Contains(pm.TableMapping.EntityType)))
{
Expand Down

Large diffs are not rendered by default.

325 changes: 242 additions & 83 deletions src/EFCore.Relational/Query/SqlExpressions/SelectExpression.cs

Large diffs are not rendered by default.

This file was deleted.

Loading

0 comments on commit bf10425

Please sign in to comment.