Esempio n. 1
0
        public BaseRepository(ILinkShortenerDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }

            Context = dbContext;
            DbSet   = Context.DbContext.Set <TEntity>();
        }
Esempio n. 2
0
 public UnitOfWork(ILinkShortenerDbContext context)
 {
     Context = context;
 }
Esempio n. 3
0
 public LinkRepository(ILinkShortenerDbContext dbContext)
     : base(dbContext)
 {
 }