-
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
Combined Keys in Value-Objects #15962
Comments
Assuming that this should map to two columns in the database, then it looks like another scenario for #13947 |
This is right, I should have found this by myself. An additional note: When I query the ReportDiagram by its Id, the restriction should be evaluated in the database and not on the client. Otherwise it would load way to much data. The mapping of multiple columns in a conversion (#13947) would not help me then. Do you plan to implement #13947 in 3.0? |
@1234Georg You can tell if a feature is planned for the next release or not by looking at the milestone. #13947 is in the Backlog milestone, which means it's not planned for 3.0. |
@ajcvickers: Thanks for your time and patience. |
This is a follow up to #15884.
I am doing DDD, and I have a combinded key, that I want to model as a value-object. For a single key this will work with a Value-Converter or HasConversion.
But what about a combined key? A Value-Converter only works with a single value. Is there a way to make that in EF Core work?
Steps to reproduce
I made a sample project on github: https://github.com/1234Georg/EfCore30_CompositeKeyInValueObject
This is the Value-Object for the combined key
Further technical details
EF Core version: 3.0.0-preview5.19227.1
Database Provider: Microsoft.EntityFrameworkCore.Sqlite, Version 3.0.0-preview5.19227.1
Operating system: Windows 10
IDE: Visual Studio 2019 16.0.3
The text was updated successfully, but these errors were encountered: