public void Dispose() { if (Context == null) { return; } Context.Dispose(); Context = null; }
public PlayCricketRepositoryFactory(PlayCricketContext context) { _playCricketReader = new PlayCricketRepository(context); }
public PlayCricketFacade(PlayCricketContext context) : this(new PlayCricketRepositoryFactory(context)) { }
public ValuesController(PlayCricketContext context) { PlayCricketContext = context; }
public PlayCricketRepository(PlayCricketContext context) : base() { PlayCricketContext = context; }
protected PlayCricketRepositoryBase(PlayCricketContext context) { Context = context; //Context.Configuration.ProxyCreationEnabled = false; //Context.Configuration.LazyLoadingEnabled = false; }