-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata for primitive collection mapping #31351
Conversation
src/EFCore.Relational/Extensions/RelationalElementTypeBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Relational/Extensions/RelationalElementTypeExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Relational/Extensions/RelationalElementTypeExtensions.cs
Outdated
Show resolved
Hide resolved
Are we going to support nested collections? |
We said not now; maybe later. |
360e2ca
to
04eccc0
Compare
We should at least propose a model building API so that we don't have to make breaking changes. |
1a890be
to
1e2a724
Compare
@AndriySvyryd Updated per API review. Does this shape look correct? |
src/EFCore/Metadata/Builders/ComplexTypePrimitiveCollectionBuilder.cs
Outdated
Show resolved
Hide resolved
1e2a724
to
0197f5f
Compare
@AndriySvyryd I still have the "ModelBuilding" tests to finish here, but I'm not going to get that done this evening, so I'm sending out for review now since, bugs, negative cases, and testing aside, I think this is ready to merge. |
src/EFCore/Metadata/Builders/ComplexTypePrimitiveCollectionBuilder.cs
Outdated
Show resolved
Hide resolved
src/EFCore/Metadata/Builders/ComplexTypePrimitiveCollectionBuilder.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Cosmos.Tests/ModelBuilding/CosmosModelBuilderGenericTest.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Relational.Tests/ModelBuilding/RelationalModelBuilderTest.cs
Outdated
Show resolved
Hide resolved
test/EFCore.Tests/ModelBuilding/PrimitiveCollectionsTestBase.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add validation for invalid configuration that's only possible using Metadata API
0197f5f
to
478059e
Compare
src/EFCore.Cosmos/Extensions/CosmosPrimitiveCollectionBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/EFCore.Cosmos/Extensions/CosmosPrimitiveCollectionBuilderExtensions.cs
Show resolved
Hide resolved
test/EFCore.Tests/ModelBuilding/PrimitiveCollectionsTestBase.cs
Outdated
Show resolved
Hide resolved
478059e
to
423bc0b
Compare
Part of #30730 Some stuff remaining, but wanted to get this out there for initial review. Missing: - ElementType in compiled model - Negative cases - More tests Review updates Change builder shape based on API review Updated based on review. More tests and refactoring of how ElementTypes are created.
423bc0b
to
9d0a4e1
Compare
Part of #30730
Some stuff remaining, but wanted to get this out there for initial review.
Missing: