Пример #1
0
 /// <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>();
 }
Пример #2
0
        //private GenericRepository<Token> _tokenRepository;
        #endregion

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