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