Do you have a way to designate the natural key fields?
For many of my tables, we have an ID field, and Natural Keys. NHibernate allows you to map Natural Keys and ID fields.
The ability to designate the natural keys in the program would help. Otherwise, I will have to manually modify hundreds of mapping files.
For An Example take the following class part.
The _agencyIndexis the ID field and _agencyNameis the Natural Key.
public partial class Agency
{
private System.Decimal _agencyIndex;
private System.String _agencyName;
Also, do you have an option to use AutoProperties?
Like This:
public virtual System.Decimal AgencyIndex { get; set; }
Instead of:
public virtual System.Decimal AgencyIndex
{
get { return _agencyIndex; }
set { _agencyIndex = value; }
}