NHibernate ClassMap obtiene el nombre de la columna para la propiedad
Tengo ClassMap y entidad. En el código, me gustaría obtener nombres de columna para propiedades en entidad. ¿Alguna idea?
public class AccountToDepotMap : ClassMap<AccountToDepot>
{
public AccountToDepotMap()
{
Table("COPS_WPA_ACCOUNT_DEPOT");
Id(t => t.RecId, "REC_ID");
Map(t => t.RecordDate, "REC_DATE");
Map(t => t.DepotId, "WPA_DEPOT_ID");
Map(t => t.AccountId, "WPA_ACCOUNT_ID");
Map(t => t.IsActive, "ISACTIVE").CustomType<YesNoType>();
}
}
public class AccountToDepot
{
public virtual long RecId { get; set; }
public virtual DateTime RecordDate { get; set; }
public virtual string DepotId { get; set; }
public virtual string AccountId { get; set; }
public virtual bool IsActive { get; set; }
}
Me gustaría preguntar sobre la propiedadDepotId
y el resultado seráWPA_DEPOT_ID
.