public BaseRepository(ILinkShortenerDbContext dbContext) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } Context = dbContext; DbSet = Context.DbContext.Set <TEntity>(); }
public UnitOfWork(ILinkShortenerDbContext context) { Context = context; }
public LinkRepository(ILinkShortenerDbContext dbContext) : base(dbContext) { }