In case other people face a similar situation. This helped me out:
1. Download a tool from: code.msdn.microsoft.com/CRM-Service-Utility-for-4ca0c93b.
2. Extract the zip.
3. Open CrmSvcMobileUtil.sln In the extracted foloder.
4. Add latest CrmSvcUtil.exe and Microsoft.Xrm.Sdk.dll as Reference to the project.
5. Open FilteringService.cs and modify GenerateEntity method. Specify entities you want to use, or simply return true to generate all.
6. Build the project.
7. Go to folder where dll is generated.
8. Execute command below. >CrmSvcUtil.exe
/codecustomization:"Microsoft.Crm.Sdk.Samples.CodeCustomizationService,CrmSvcMobileUtil" /codewriterfilter:"Microsoft.Crm.Sdk.Samples.FilteringService,CrmSvcMobileUtil" /url:<your org endpoing> /username:<user> /password:<password> /out:XrmData.cs /namespace:<ns>