asp.net-core tag

9 questions


1 answers
443 views
0
Error on MacOS The entity type 'X' requires a primary key to be defined

I have created a sample app (MvcMovie) according to the official tutorial and The following command displays a heading error: dotnet-aspnet-codegenerator controller-name MoviesController-m Movie-dc Mv...


1 answers
161 views
0
Benefits and Disadvantages of Razor Page and MVC

for ASP.NET Core·Razor Pages application·MVC applicationThere are two types, but how should I use them separately?What are the advantages and disadvantages of each application?


2 answers
128 views
0
The ASP.NET Core MVC always fails with the Scaffolding command.

I am a beginner at ASP.NET Core MVC.As the title says, I can't do the scuffolding.Run the following command: dotnet ef dbcontext scaffoldServer=.; Database=testdb; Trusted_Connection=True;Microsoft.En...

2 years ago

2 answers
119 views
0
DB Connection Entity Frame in ASP.net Core MVC or ODP.net

We are creating a web API using the ASP.net Core MVC model.So I would like to connect to the database and issue SQL and execute procedures.Until now, I have used ODP.net to attach a connection to the ...


1 answers
182 views
0
Using Sessions with ASP.NET Core

Sessions and Application States in ASP.NET Corehttps://docs.microsoft.com/ja-jp/aspnet/core/fundamentals/app-state?view=aspnetcore-2.2Sample Sourcehttps://github.com/aspnet/Docs/tree/master/aspnetcore...


1 answers
140 views
0
Is there a best way to change the appsettings.json option that ASP.NET uses for each HTTP request?

ASP.NET Core is loading options from appsettings.json (ASP is amateur).I'd like to change the options I use depending on the parameters of the HTTP request, is there any best way?I was able to move it...

2 years ago

1 answers
95 views
0
I want to set policy permissions on asp.net core per Post, not per PageModel

I'm sorry if there's anything wrong with the question.https://docs.microsoft.com/ja-jp/aspnet/core/security/authorization/policies?view=aspnetcore-2.2As you can see in , [Authorize (Policy=AtLeast 21)...

2 years ago

2 answers
155 views
0
Accessing DbContext Directly without WebAPI in ASP.NET Core 3.0

I am currently studying how to build a web server using ASP.NET Core 3.0 and Blazor. After searching for online tutorials, we found a way to access databases such as SQL Server using WebAPI using the ...


1 answers
138 views
0
Failed to connect to .net core 3.0 MVC "Web server 'IIS Express'."

I would like to develop MVC using .Net Core 3.0, but the following error message appears and I cannot start the screen.Are there any possible solutions?What do you want to doLaunch MVC project using V...

2 years ago

© 2024 OneMinuteCode. All rights reserved.