I have ClassMap and entity. In code I would like to get column names for properties in entity. Any Idea?
public class AccountToDepotMap : ClassMap
using above code
This is working in my case
List columns = new List(); for (int i = 0; i < persister.PropertyNames.Count(); i++) { if (persister.GetPropertyColumnNames(i).Count() > 0) { columns.Add(persister.GetPropertyColumnNames(i).ToList().First()); } }