Created
July 4, 2019 06:16
-
-
Save gashupl/2a4a9c1cb0511fa479dbbafe33327745 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var orgService = serviceFactory.CreateOrganizationService(pluginExecutionContext.UserId); | |
var factory = new RepositoryFactory(orgService); | |
var opportunityRepo = factory.Get<Opportunity, OpportunityRepository>(); | |
var data = opportunityRepo.GetSomeData(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment