I have a question for how to model a feature in a project that I am going to be working on soon.
The project is going to be broken up into multiple projects, a Core project and then various subprojects that will all use the Core as a reference. The Core Domain project will define common business objects (users, companies, etc.).
The subprojects will want to be able to extend the core business objects to store any extra information relevant to the subproject.
For adding new properties in the inheritance, it is clear that it would be a version of table per subclass in the new project. Is there an example of how to do that between projects?
What of the case where I am adding a list to the object in the first project? How would that mapping file look in the subproject?
Example: Core.Company has basic information about a company and is a Persisted POCO.
SubProject.Company inherits from Core.Company and adds a List<Project>. Project is a Persisted POCO in the subproject.
I hope that makes sense. If not, I can fill in more details.
|