This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How do you map enum types using NHibernate designer. I understand how to define the enum type but I am at a loss for how to populate it with values. Any help is greatly appreciated |
|
|
You would populate the enum values in the normal way in your C# or Visual Basic enum definition. For example:
I may be misunderstanding your question though -- can you clarify what you're having trouble with? |
|
|
i guess the confusion comes about b/c i thought i would be able to define the enum in the designer and then have it generated along with the entities. Is this not the case? Do i have to define the enum class manually outside of the designer? |
|
|
Yes -- you define the enum class in the normal way in code, the designer just gives you a way to use it in your entities. |
|