Mapping custom enum classes with Fluent Nhibernate -
Reading and thinking from Jimmy Bougard - How is it possible to map those animals with fluent nhibernate?
What does mapping look like for this? Public class employee type: calculation {public static text only Employee employee manager = new employee type (0, "manager"), servant = new employee type (1, "servant)"), Assistant Toriodial Manager = New employee type (2, "Assistant to Regional Manager"); Private employee type () {} Private employee type (int value, string displayname): base (value, displayname) {}}
Ahh ... it was easy. In CodeCampServer - There is a general enumeration type class. Idea is simple - we need to wrap our domain model enumeration value with the enumeration type so that it maps to an integer (or anything if necessary).
Comments
Post a Comment