you can put a property without a proxy? because I need to get the value of it. Below is the mapping:
public class MateriaPrimaMap : ClassMap<MateriaPrima> {
#region Construtor
public MateriaPrimaMap() {
Table("MATERIAPRIMA");
Id(m => m.Id).Column("MPR_CD");
Map(m => m.Descricao)
.Column("MPR_DS")
.Not.Nullable().Length(30);
Map(m => m.Ativo)
.Column("MPR_ATIVO")
.Not.Nullable();
Version(m => m.Version).Column("MPR_DT_LK").Generated.Always();
}
#endregion
}}
You can use the mapping of NHibernate, which let's you map a property of another entity (related with the main one) as if it were part of it. See here: http://nhibernate.info/doc/nhibernate-reference/mapping.html#mapping-declaration-join.