Schema:
- Users
- ID
- Name
- Password
- Address
- ID
- Street
- UserID
Both tables have an ID field (guid).
Code:
User u = new User();
u.Address.Street = "test";
session.Save(u);
How can I create a mapping file to use the UserID
from the address table to point
to the ID from the Users
table and reflect my sample code above?