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;
 }
Example #3
0
 public void Initialization()
 {
     _objectContext = ServiceLocator.Current.GetInstance <IObjectContextManager>("ObjectContextManager");
     _repository    = new MerkRepository(_objectContext);
 }
Example #4
0
 public MerkRepository(IObjectContextManager objectContextManager)
     : base(objectContextManager)
 {
 }
 public HeadOfficeRepository(IObjectContextManager objectContextManager)
     : base(objectContextManager)
 {
 }
Example #6
0
 public MarketAreaRepository(IObjectContextManager objectContextManager)
     : base(objectContextManager)
 {
 }
 public void Dispose()
 {
     ContextManager.Dispose();
     ContextManager = null;
 }
Example #8
0
 public void Dispose()
 {
     ContextManager.Dispose();
     ContextManager = null;
 }
Example #9
0
 public EntityFrameworkObjectContext(IPersistenceDetails persistenceDetails)
 {
     ContextManager = ObjectContextManager.GetManager(persistenceDetails.Location);
 }