示例#1
0
        public BaseRepository(ILinkShortenerDbContext dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException(nameof(dbContext));
            }

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