net-core tag

15 questions


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
96 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
156 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
140 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

2 answers
89 views
0
Serialize, desirialize Utf8 Json's Decimal in C#.netcore

If you serialize the Decimal value, you will receive a Double value. Resolver, Formatter, IJsonFormatterResolver, IJsonFormatter<> seems to be used to solve this problem, but I don't know how to...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.