public EfGenericRepository(ISotnWikiDbContext context) { Guard.WhenArgument(context, nameof(ISotnWikiDbContext)).IsNull().Throw(); this.context = context; this.dbSet = this.context.Set <T>(); if (this.dbSet == null) { throw new ArgumentException("DbContext does not contain DbSet<{0}>", typeof(T).Name); } }
public CharacterRepository(ISotnWikiDbContext context) : base(context) { }
public ContentSubmissionRepository(ISotnWikiDbContext context) : base(context) { }
public EfUnitOfWork(ISotnWikiDbContext context) { Guard.WhenArgument(context, nameof(ISotnWikiDbContext)).IsNull().Throw(); this.context = context; }
public RunRepository(ISotnWikiDbContext context) : base(context) { }