Wednesday 15 April 2015

Fluent NHibernate Automapper maps Enum to nvarchar(255) and not int? -


Why arent maps as strings in the form of an automapper when using the automapper in NHibernate, and why not?

<

Thank you Mikael Henricson got the answer:

  public class EnumConvention: IPropertyConvention, IPropertyConventionAcceptance {# Region IPropertyConvention Member Apply Public Zero (IPProtest instance) {instance.CustomType (example.Property.PropertyType); } #endrian # Ariane IPProot Convention Approval Member Acceptance of Public Zero (IAcceptanceCriteria & lt; IP Inspector & gt; Criterion) {Criteria. Expect (X => X. Property Property Type. ISANUm); } #endregion}  

No comments:

Post a Comment