Monthly Archives: June 2017

Entity Framework not saving data to database on context.SaveAsync() while using Autofac

Hi, Recently I was using Entity Framework with a DB first approach in an application and using the Repository pattern with Unit of Work to have easy management of DB operations. So my repository constructor accepted an IDataContext object (IDataContext … Continue reading

Posted in .NET, General | Tagged , , , , , , , | Leave a comment

Resolving Azure Data Lake Authorization Issue

Hi, While trying to access Azure Data Lake Store from my application, I encountered the below exception. The client ‘guid’ with object id ‘guid’ does not have authorization to perform action ‘Microsoft.Authorization/permissions/read’ over scope ‘/subscriptions/guid…. Resolution : I realized that … Continue reading

Posted in .NET, General | Tagged , , , , , | Leave a comment

Resolving IContainer in Constructor when using Autofac

Hi, While using Unity as an Inversion of Control and Dependency Injection container, there is an option to directly inject the container into a class’s constructor by placing the IUnityContainer interface as a constructor parameter. This container can then be … Continue reading

Posted in General | Tagged , , , , | Leave a comment