core tag

20 questions


1 answers
131 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
86 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
140 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
128 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
80 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

1 answers
36 views
0
Can I know the number of computer cores through the program?

Regardless of the platform, Is there a way to find out how many cores it is using C/C++ If you don't have that method,Please use it according to the platform.

2 years ago

2 answers
41 views
0
Multi-core programming method to share specific elements in Python

I read the initial values from DB, and I'm holding them from Python to a tuple.In this situation, you have to do a large number of operations by changing the value of a variable. The initial value tup...

2 years ago

1 answers
39 views
0
What is the function of an underline (_) in Python?

I saw this code on the Internet, and I wonder what __ is doing with for_in instead of the string _.mylist = [1,1]if True: for _ in mylist: print(hello world!)hello worldhello world

2 years ago

1 answers
34 views
0
Underbar "_" Calling Questions

if __name__ == __main__:After the under bar comes out twice, the word name comes outWhen you explain to someone,Underba, underba, underba, underbar, underbarOr I wonder if there is a separate name for...

2 years ago

1 answers
115 views
0
What object is _(underlined) before the name?

What's the difference between one underlined object name and two underlined object names?Why are you using it?Are functions and variables used in the same sense?

« - 2 -

© 2024 OneMinuteCode. All rights reserved.