You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On this page it states that "Indexes can not be created using data annotations." but I'm wondering why this is the case. For my project, data annotations seem like a much cleaner way of providing this sort of information. I'd love for my index code to be in the same place as the entity it applies to, rather than all gathered in by DbContext class.
Is there a technical reason this isn't possible/easy, or is it just not implemented?
Thanks,
Josh
Further technical details
EF Core version: 1.1.4
Database Provider:Pomelo.EntityFrameworkCore.MySql
Operating system: Windows 10
IDE: Visual Studio 2017 (15.3.1)
The text was updated successfully, but these errors were encountered:
Hi,
On this page it states that "Indexes can not be created using data annotations." but I'm wondering why this is the case. For my project, data annotations seem like a much cleaner way of providing this sort of information. I'd love for my index code to be in the same place as the entity it applies to, rather than all gathered in by DbContext class.
Is there a technical reason this isn't possible/easy, or is it just not implemented?
Thanks,
Josh
Further technical details
EF Core version: 1.1.4
Database Provider:Pomelo.EntityFrameworkCore.MySql
Operating system: Windows 10
IDE: Visual Studio 2017 (15.3.1)
The text was updated successfully, but these errors were encountered: