-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Create additional .NET attributes (like data annotations) for EF Core configuration #10111
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@eduherminio The reason is that it used a combination of Key and Column for ordering, but column ordering is not the same thing as key ordering, and so this caused confusion and issues in EF6. Changing existing data annotations is also costly because of their relationship to .NET Core and .NET Framework. However, we see the value in being able to this and other common configuration using attributes, since the jump to the fluent API can be a big one. Therefore, we will investigate creating a new library/package with additional new EF configuration attributes that can be used alongside data annotations. This would be one of the things that would be implemented there. |
See also #11003 for the specific case of configuring a composite key. |
I've an application with almost 1000 tables which 100-150 use composite keys. Btw do we have an ETA on that package? Keep the good job on ef core! |
@SoaresMG This issue is in the Backlog milestone. This means that it is not scheduled to happen for the 2.2 or 3.0 releases. We will re-assess the backlog following the 3.0 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. |
@ajcvickers I see... I was just trying my luck. 👍 |
Consider ToView. See dotnet/EntityFramework.Docs#913 |
@divega to split out into different issues for each attribute. |
Closing as a duplicate of #10864 since that issue has more votes. |
I guess there some good reason not to do it, but here it is the suggestion just in case.
The text was updated successfully, but these errors were encountered: