-
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
Suggestion: add attribute to make type keyless #19246
Comments
Note for triage: specific case of #10864 |
When will this be implemented? Right now we are using DBQuery in our Azure based solution. And as I mentioned in #19509, we use .Net Framework as well as .Net Core - which does not allow us to use the Fluent API. In stead we use data annotations in our entity classes. Because DBQuery is obsolete in EF Core this even has as a consequence that we will it will be very difficult to from .Net Core 2.x to 3.x, if not almost impossible. |
@Joehannus This issue is in the Backlog milestone. This means that it is not planned for the next release (EF Core 5.0). We will re-assess the backlog following the this release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources. We can continue the conversation on #19509 but I still do not understand why you can't just the model building API. |
@AndriySvyryd - Pick a name. 😉 |
|
Resolves #19246 Also related #19964 - Add KeylessAttribute in Abstractions packge - Add convention to detect KeylessAttribute and configure the entityType to be keyless - Scaffolding when using data annotations - Generate KeylessAttribute over entity class - Skip HasNoKey from fluent API configuration Tests: - Add tests for OwnedAttribute - Add tests for KeylessAttribute - Add test for scaffolding to verify behavior with data annotations
Resolves #19246 Also related #19964 - Add KeylessAttribute in Abstractions packge - Add convention to detect KeylessAttribute and configure the entityType to be keyless - Scaffolding when using data annotations - Generate KeylessAttribute over entity class - Skip HasNoKey from fluent API configuration Tests: - Add tests for OwnedAttribute - Add tests for KeylessAttribute - Add test for scaffolding to verify behavior with data annotations
Now ViewModel(ReonlyModel) It can only be set through the fluent API.
I want to attribute that the entity is read-only through the feature.
To avoid having to call
HasNoKey
.The text was updated successfully, but these errors were encountered: