public void Configure(IApplicationBuilder app, IHostingEnvironment env, MagicCardsDbContext dbContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseGraphQL <MagicCardsSchema>(); app.UseGraphQLPlayground(new GraphQLPlaygroundOptions()); // /ui/playground dbContext.Seed(); }
public CardsRepository(MagicCardsDbContext dbContext) { _dbContext = dbContext; }