public DataContext(string nameOrConnectionString, IApplicationUserDataContext applicationContext) : base(nameOrConnectionString) { _instanceId = Guid.NewGuid(); Configuration.LazyLoadingEnabled = false; Configuration.ProxyCreationEnabled = false; _applicationContext = applicationContext; }
protected Service(IRepositoryAsync <TEntity> repository, IApplicationUserDataContext applicationContext) { _applicationContext = applicationContext; _repository = repository; }