/// <summary>
 /// Public Constructor,initializes privately declared local variables.
 /// </summary>
 /// <param name="context"></param>
 public GenericRepository(miEntities context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
 }
Esempio n. 2
0
        //private GenericRepository<Token> _tokenRepository;
        #endregion

        public UnitOfWork()
        {
            _context = new miEntities();
        }