public void Dispose()
 {
     if (Context == null)
     {
         return;
     }
     Context.Dispose();
     Context = null;
 }
Esempio n. 2
0
 public PlayCricketRepositoryFactory(PlayCricketContext context)
 {
     _playCricketReader = new PlayCricketRepository(context);
 }
Esempio n. 3
0
 public PlayCricketFacade(PlayCricketContext context) : this(new PlayCricketRepositoryFactory(context))
 {
 }
Esempio n. 4
0
 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;
 }