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 20442c4 commit d9518a5
Show file tree
Hide file tree
Showing 21 changed files with 5,126 additions and 1,599 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 d9518a5

Please sign in to comment.