How to integrate external objects in conceptual model?

by Anyname Donotcare   Last Updated April 04, 2018 12:05 PM

If I want to create a conceptual model for my new application, and during the analysis I found that some objects like employee,department ..etc are a part of another system. and all the data related to them like employee name or number exist in that system.

My questions here:

  • How to handle this case in my conceptual model? Should I include these objects and their responsibilities in my conceptual model ?
  • How to implement them in my application (Hint: I'm going to use mvc and EF6 code-first)

Answers 1

OK so! your application is a "shift management app"

In essence this app doesn't really care about employees and departments. It will care about when the business day starts and ends, how many people are working at the company, how long a shift is etc.

So you should exclude them from your conceptual model. It will only complicate it. Perhaps for example, sometimes a shift is not filled by an 'Employee' as defined by the other system. Perhaps its a contract worker or some such.

Create new models for the object you do need Shift, Person, BusinessDay etc and describe the system in those terms.

When you actually come to make the system use those same objects, so that it is flexible enough to work with any data, but link them up to the other systems with a separate export or mapping layer.

April 04, 2018 11:35 AM

Related Questions

Updating an entity via a service layer

Updated October 03, 2018 17:05 PM

User and role modeling

Updated June 29, 2015 13:02 PM

Generic repository pattern +EF and unit of work

Updated February 14, 2018 14:05 PM