Can someone provide or point me to a complete code sample, with an hbm.xml and a .cs file that references a table witha composite key? I've tried reading the documentation; however I am sorry to say it's over my head. For example, the statement in the doc that says the persisent class MUST override Equals() and GetHashCode() to implement composite identifier equality... is over my head.
Suppose I have a table named MyTable with three columns, each nvarchar(10) called ColumnA, ColumnB, and ColumnC where ColumnA and ColumnB make up the composite key.
I will try to keep plugging away trying to figure out how to do this. However an help will be appreciated.
I apologize sincerely for my newbieness.
|