public void Initialization() { _objectContext = ServiceLocator.Current.GetInstance<IObjectContextManager>("ObjectContextManager"); _repository = new MarketAreaRepository(_objectContext); }
/// <summary> /// Initializes the repository. /// </summary> /// <param name="objectContexManager">Manager object that holds the ObjectContext</param> protected GenericRepository(IObjectContextManager objectContexManager) { _objectContextManager = objectContexManager; }
public void Initialization() { _objectContext = ServiceLocator.Current.GetInstance <IObjectContextManager>("ObjectContextManager"); _repository = new MerkRepository(_objectContext); }
public MerkRepository(IObjectContextManager objectContextManager) : base(objectContextManager) { }
public HeadOfficeRepository(IObjectContextManager objectContextManager) : base(objectContextManager) { }
public MarketAreaRepository(IObjectContextManager objectContextManager) : base(objectContextManager) { }
public void Dispose() { ContextManager.Dispose(); ContextManager = null; }
public void Dispose() { ContextManager.Dispose(); ContextManager = null; }
public EntityFrameworkObjectContext(IPersistenceDetails persistenceDetails) { ContextManager = ObjectContextManager.GetManager(persistenceDetails.Location); }