This is a test project when learning of ASP.NET Core. The XML comments have simple description. If you have any questions about the content, then implementing the project and using Postman or Fiddler to understand the test results will help you learn. A few examples make the browser a better choice.
If you like or are using this project to learn, please give it a star. Thanks!
- .NET Core 3.1.x SDK
- ASP.NET Core 3.1
- Visual Studio 2019 16.4.x
- Visual Studio Code
- In project folder click .sln open Visual Studio 2019.
- In .csproj folder run
dotnet run
- Open Visual Studio Code in .csproj folder and F5 run debug
AcceptedController
have 17 demo.BadRequestController
have 5 demo.ChallengeController
have 0 demo.ConflictController
have 3 demo.ContentController
have 5 demo.CreatedController
have 11 demo.FileController
have 24 demo.ForbidController
have 0 demo.NotFoundController
have 2 demo.OkController
have 2 demo.PhysicalFileController
have 8 demo.ProblemController
have 4 demo.RedirectController
have 9 demo.SignController
have 0 demo.StatusCodeController
have 3 demo.UnauthorizedController
have 2 demo.UnprocessableEntityController
have 3 demo.ValidationProblemController
have 3 demo.
GetKeyValue();
GetConnectionString();
GetHierarchicalData();
BindToAClass();
GetEnvModeConfig();
GetOSEnvironment();
GetMemoryConfig();
GetCommandLineConfig();
GetValueSample();
GetSectionSample();
GetChildrenSample();
ExistsSample();
GetIniSample();
GetXMLSample();
SingleFile()
SingleFileForm()
SingleFileSaveDisk()
MultiFilesUseCollection()
MultiFilesUseIEnum()
MultiFilesUseList()
MultiFilesSaveDisk()
UploadWithModel()
- Article 1: 簡單四步驟:使用ASP.NET CORE提供口罩剩餘數量查詢API
- Article 2: 簡單五步驟:以EF Core整合SQLite儲存口罩剩餘數量資訊
- Article 3: 簡單五步驟:ASP.NET Core整合Hangfire來排程更新口罩剩餘數量資料
HttpBasicController()
have 3 demo.- Basic
- Named
- Polly
RefitController()
have 1 demo.RefitDIController()
have 1 demo.SocketHttpController()
have 3 demo.
Part of it focuses on the configuration of Startup.ConfigureServices()
.
Practice "How to use IHttpClientFactory
in Console application"
Article: 小心ASP.NET CORE裡ASYNC結尾ACTION方法!
Practice source: https://devblogs.microsoft.com/odata/enabling-endpoint-routing-in-odata/ ODataWithEndpointNonEdm not yet working.
- Practice content negotiation and configuration.
- Practice custom CsvOutputFormatter.
How-to use Dapper access database.
DapperQueryAndExecute
DapperStoredProcedure
DapperQueryAnonymous
DapperQueryStronglyTyped
DapperQueryFirst
DapperQueryMultiple
DapperParameterDynamic
DapperParameterList
DapperQueryBuffered
DapperTransaction
DapperTransactionScope
How-to use Dapper (async,await) access database.
DapperQueryAsync
DapperQueryAsyncStoredProcedure
DapperQueryAsyncAnonymous
DapperQueryAsyncStronglyTyped
DapperQueryFirstAsync
DapperQueryMultipleAsync
DapperExecuteAsync
DapperParameterDynamicAsync
DapperParameterListAsync
DapperTransactionAsync
DapperTransactionScopeAsync