Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EfUnitOfWork"/> class.
        /// </summary>
        /// <param name="dbContext">The db context.</param>
        public EfUnitOfWorkSimple(IDbContextSimple dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("dbContext");
            }

            _context = dbContext;
        }
 public EfGenericRepositorySimple(IDbContextSimple context)
 {
     this._context = context;
     this._dbSet   = context.Set <TEntity>();
 }