第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

關(guān)于使用ASP.NET CORE 3.1 點(diǎn)擊無反應(yīng)的 點(diǎn)進(jìn)來看一下?。?!

有問題的可以對照一下我的Starup.cs文件 主要是在endpoints里加一個(gè)MapRazorPages();

using System;

using System.Collections.Generic;

using System.Linq;

using System.Threading.Tasks;

using Microsoft.AspNetCore.Builder;

using Microsoft.AspNetCore.Hosting;

using Microsoft.AspNetCore.Http;

using Microsoft.Extensions.DependencyInjection;

using Microsoft.Extensions.Hosting;

using LanzhouBeefNoodles.Models;

using Microsoft.EntityFrameworkCore;

using Microsoft.Extensions.Configuration;

using Microsoft.AspNetCore.Identity;


namespace LanzhouBeefNoodles

{

? ? public class Startup

? ? {

? ? ? ? // This method gets called by the runtime. Use this method to add services to the container.

? ? ? ? // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940

? ? ? ? public IConfiguration Configuration { get; }

? ? ? ? public Startup(IConfiguration configuration)

? ? ? ? {

? ? ? ? ? ? Configuration = configuration;

? ? ? ? }

? ? ? ? public void ConfigureServices(IServiceCollection services)

? ? ? ? {

? ? ? ? ? ? services.AddDbContext<AppDbContext>(options =>

? ? ? ? ? ? ? ? options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))

? ? ? ? ? ? ? ? );

? ? ? ? ? ? services.AddMvc();

? ? ? ? ? ? services.AddRazorPages();

? ? ? ? ? ? services.AddTransient<INoodleRepository, NoodleRepository>();

? ? ? ? ? ? services.AddTransient<IFeedbackRepository, FeedbackRepository>();

? ? ? ? }


? ? ? ? // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

? ? ? ? public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

? ? ? ? {

? ? ? ? ? ? if (env.IsDevelopment())

? ? ? ? ? ? {

? ? ? ? ? ? ? ? app.UseDeveloperExceptionPage();

? ? ? ? ? ? ? ??

? ? ? ? ? ? }

? ? ? ? ? ? app.UseHttpsRedirection();

? ? ? ? ? ? app.UseStaticFiles();? ? ? ?

? ? ? ? ? ? app.UseRouting();

? ? ? ? ? ? app.UseAuthentication();

? ? ? ? ? ? app.UseEndpoints(endpoints =>

? ? ? ? ? ? {

? ? ? ? ? ? ? ? endpoints.MapDefaultControllerRoute();

? ? ? ? ? ? ? ? endpoints.MapRazorPages();

? ? ? ? ? ? ? ??

? ? ? ? ? ? });

? ? ? ? }

? ? }

}


正在回答

2 回答

全部都復(fù)制過去了 還是沒用啊?


0 回復(fù) 有任何疑惑可以回復(fù)我~

???謝謝,我也正在計(jì)劃把課程遷移至3.1。

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

關(guān)于使用ASP.NET CORE 3.1 點(diǎn)擊無反應(yīng)的 點(diǎn)進(jìn)來看一下?。。?/h1> 我要回答 關(guān)注問題

微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)