NHibernate Mapping and Querying Where Tables are Related But No Foreign Key Constraint
- by IanT8
I'm fairly new to NHibernate, and I need to ask a couple of questions relating to a very frequent scenario. The following simplified example illustrates the problem.
I have two tables named Equipment and Users. Users is a set of system administrators. Equipment is a set of machinery.
Tables:
Users table has UserId int and LoginName…