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

+7-1
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

+82-263
Large diffs are not rendered by default.

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

+242-83
Large diffs are not rendered by default.

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

-70
This file was deleted.

0 commit comments

Comments
 (0)