dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

Document enum mapping #399

Open ferrx opened 7 years ago

ferrx commented 7 years ago

I ran into the usage in an aspnet core article here https://docs.microsoft.com/en-us/aspnet/core/security/authorization/secure-data#modify-the-app-to-secure-user-data

There is no documentation in /ef/core regarding the usage of enum. A small article under /ef/core/modeling/ would be great. Simply going over the fact that you can do this and how would suffice -- why you would do it (instead of using another DB table) might be out of scope, but would be nice to have.

Everything else is great, EF core is awesome!

hanslai commented 6 years ago

an example on how to use enumeration classes with EF Core is great.

sputier commented 6 years ago

I'd like to give it a try 😄