Beispiel #1
0
        public static void RefreshNew()
        {
            if (DataContextManager._Context != null)
            {
                DataContextManager._Context.Dispose();
                DataContextManager._Context = null;
            }

            DataContextManager._Context = new AvantiTestEntities();
        }
Beispiel #2
0
 public BaseRepository(AvantiTestEntities context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }