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
|
In this previous post I notice that there was a request to have the ability to map enums to strings in the database. Has this feature been implemented? If not what is the best way to work with a database that stores the enums as strings? |
|
|
You can use the StringEnumFieldConverter class which is a custom field converter to handle the translation between the model and the database. If the underlying field is nullable you will need to extend this with a custom implementation that handles the DBNull, an example of this is described here: http://www.mindscapehq.com/forums/thread/591250
|
|