// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, UrbanCartonDbContext dbContext) { app.UseCors(builder => builder.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod()); app.UseWebSockets(); app.UseGraphQLWebSockets <UrbanCartonSchema>("/graphql"); app.UseGraphQL <UrbanCartonSchema>(); app.UseGraphQLPlayground(new GraphQLPlaygroundOptions()); dbContext.Seed(); }
public Repository(UrbanCartonDbContext dbContext) { _dbContext = dbContext; }
public ProductReviewRepository(UrbanCartonDbContext dbContext) { _dbContext = dbContext; }