Replacing your LINQ data access layer with QueryExpressions

Given that we have refactored our plugin in the previous recipe, we will now demonstrate how easy it is to swap a concrete DAL class with an alternative implementation.

In this recipe, we will replace the LINQ EmailDataAccessLayer implementation with a QueryExpression implementation. We will also drop the unit of the work design pattern and use IOrganizationService instead of OrganisationServiceContext.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.175.180