public static void Seed(TeistDbContext dbContext, RoleManager <ApplicationRole> roleManager) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } if (roleManager == null) { throw new ArgumentNullException(nameof(roleManager)); } SeedRoles(roleManager); }
public static void Seed(TeistDbContext dbContext, IServiceProvider serviceProvider) { if (dbContext == null) { throw new ArgumentNullException(nameof(dbContext)); } if (serviceProvider == null) { throw new ArgumentNullException(nameof(serviceProvider)); } var roleManager = serviceProvider.GetRequiredService <RoleManager <ApplicationRole> >(); Seed(dbContext, roleManager); }
public EfRepository(TeistDbContext context) { this.Context = context ?? throw new ArgumentNullException(nameof(context)); this.DbSet = this.Context.Set <TEntity>(); }
public BaseTest() { context = DatabaseFactory.CreateContext(); }
public ReviewRepository(TeistDbContext context) : base(context) { }
public EfDeletableEntityRepository(TeistDbContext context) : base(context) { }
public UserRepository(TeistDbContext context) : base(context) { }
public ChartRepository(TeistDbContext context) : base(context) { }
public PieceRepository(TeistDbContext context) : base(context) { }
public ArtistRepository(TeistDbContext context) : base(context) { }
public AlbumRepository(TeistDbContext context) : base(context) { }