fluent nhibernate PrimaryKeyConvention for property names
问题 This question has been asked already but there was no decent answer. Is there a property name convention for fluent nhibernate so that instead of looking for Id it looks for ProductId ? PrimaryKeyConvention applies to the column names in the database, NOT the property names. Consider this scenario: public class Product { public int ProductId { get; set; } public string Name { get; set; } } public class AutomappingConfiguration : DefaultAutomappingConfiguration { public override bool ShouldMap