Is it possible to map some advanced relations to a single entity. Or, is it possible to map the same table to two Enities.
For example, I have a person class that has 10 fields for the address. Can I make an Address Entity that mapps to the address fields, then have that exposed as an Address property on the person object like:
Person.Addrsses.Street
Also, is it possible to create a single entity that is mapped to two tables.
For example, I have an employee entity that is persisted in a table named Person which contains Name, Ssn, etc and a 1:1 related table named Employee (every person is not necessarily an employee) which has employenumber, job, salart, etc, etc. Is it possible to have a single entity class that maps to both tables so I can reference:
Employee.Name
Employee.EmployeeNumber
Or, is the product strictly 1 table = 1 entity class ???
Thanks,
BOb