Skip to content

Commit bf10425

Browse files
committed
Query: Full support for entity splitting
Resolves #620
1 parent dfbc7ff commit bf10425

19 files changed

+4694
-1554
lines changed

src/EFCore.Relational/Metadata/Internal/RelationalEntityTypeExtensions.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ public static IEnumerable<IProperty> GetNonPrincipalSharedNonPkProperties(this I
9191
continue;
9292
}
9393

94-
var propertyMappings = table.FindColumn(property)!.PropertyMappings;
94+
var column = table.FindColumn(property);
95+
if (column == null)
96+
{
97+
continue;
98+
}
99+
100+
var propertyMappings = column.PropertyMappings;
95101
if (propertyMappings.Count() > 1
96102
&& propertyMappings.Any(pm => principalEntityTypes.Contains(pm.TableMapping.EntityType)))
97103
{

src/EFCore.Relational/Query/RelationalQueryableMethodTranslatingExpressionVisitor.cs

Lines changed: 82 additions & 263 deletions
Large diffs are not rendered by default.

src/EFCore.Relational/Query/SqlExpressions/SelectExpression.cs

Lines changed: 242 additions & 83 deletions
Large diffs are not rendered by default.

test/EFCore.Relational.Specification.Tests/Query/EntitySplittingQueryFixtureBase.cs

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)