public BaseRepository(ILinkShortenerDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }

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