- Create a public interface called IBaseDataAccessLayer in a folder called DataAccessLayer.
- Add the following using statement:
using Microsoft.Xrm.Sdk;
- Add the following two signatures:
void UpdateEntity(Entity entity); void Commit();
- Create a public base class called BaseDataAccessLayer that implements IBaseDataAccessLayer and IDisposable in the same folder.
- Include the following using statements:
using Microsoft.Xrm.Sdk; using Packt.Xrm.Entities;
- Remove the organization server and organization proxy from your old plugin and then add a protected variable to your abstract class, as follows:
protected IOrganizationService OrganizationService; protected OrganisationServiceContext OrganizationContext;
- Create the ...