Entity Framework - mapping Enum type to column

M

Michael Bray

EF Faq (http://blogs.msdn.com/dsimmons/pages/ef-faq-entity-
services.aspx) states that automatic mapping of enum type to column
isn't possible. Are there any workarounds? Manually adding additional
property that converts another Int property to given enum type, or
something more subtle?

that's basically the way I've decided to address it... I recently posted
a blog about this (it's a really small blog mostly intended for our
internal developers)... See the post at
http://cticoder.wordpress.com/2008/08/16/using-enums-with-entity-framework/
to see the details.

-mdb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top