3
Good evening, I have my next class
public class Endereco {
public string Bairro { get; set; }
public string Cidade { get; set; }
public EUF Estado { get; set; }
}
and my enumerator
public enum EUF {
SP = 1,
PR = 2,
SC = 3
}
and my mapping class
public EnderecoConfig : EntityTypeConfiguration<Endereco> {
public EnderecoConfig() {
Property(x => x.Cidade);
}
}
How to map this Enum using Entitytypeconfiguration?
I’m used to the FLUENT NHIBERNATE
where we use CustomType<EUF>()
Must necessarily use
EntityTypeConfiguration
? Because you don’t have to. You can make it simpler.– Leonel Sanches da Silva
I’m used to using Fluent API with nhibernate, I find more organized our mapping, in addition to not "dirty" the classes with numerous Annotations
– Rod