I'm studying Prism and need to create a small demo app. I have some design questions. The differences between attitudes might be small, but I need to apply the practices to a large scale project later, so I'm trying to think ahead.
Assuming the classical DB related scenario - I need to get a list of employees and a double click on a list item gets extra information for that employee: Should the data access project be a module, or is a project accessed via repository pattern a better solution? What about large scale project, when the DB is more than one table and provides, say, information about employees, sales, companies etc.?
I'm currently considering to use the
DataAccessmodule as a stand alone module, and have defined its interface in the Infrastructure project as well as its return type (EmployeeInformation). This means that both myDataAccessmodule and my application have to reference theInfrastructureproject. Is this a good way to go?- I'm accessing said
DataAccessmodule usingServiceLocator(MEF) from my application. Should theServiceLocatorbe accessed by parts of the application, or is it meant to be used in the initialization section only?
Thanks.
DataAccesswill be quite a large project, and I think it will overflow theInfrastructureproject. - Noich