Mapping Enums to Database with NHibernate/Castle ActiveRecord
- by Mike
There's a few other posts on mapping Enums to the DB with ActiveRecord, but none of them answer my question. I have an enum called OrderState:
public enum OrderState {InQueue, Ordered, Error, Cancelled}
And I have the following property on the table:
[Property(NotNull = true, SqlType = "orderstate", ColumnType = "DB.EnumMapper, WebSite")]…