Tag dotnet
Entity type IdentityUserLogin requires a primary key
พอดีลองเล่น EF สักหน่อย หลักๆจะใช้ Dapper เอา แล้วมีเคสมือลองไปแก้ ลองเปลี่ยน ที่นี่พอลอง Run จะเจอ Error Solution Note: จริงๆ ไม่ควร Database First มาเป็น Code First บน Production นะครับ
[DOTNET] Container cannot start on Podman 2.0.X, Failed to create CoreCLR, HRESULT: 0x80070008
Problem The container cannot start on the error message is Environment Solution Update Podman to Lasted Version, If Podman on RedHat 8.x. My Suggestion is to update RedHat to the latest version (Current 8.9) that comes with Podman 4.6.1. If…
Microsoft Applied Skills: Develop an ASP.NET Core web app that consumes an API
ตอนแรกไม่ได้ตั้งใจจะเขียน Blog นะ แต่แบบว่าเราลองทำแล้ว Code + Deploy App Service มันน่าจะผ่านนี่ Test ผ่าน ทำถูกหมดแล้วนะ แล้วมีคนบ่นใน Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API – Microsoft Q&A เลยลองมาเขียน Blog ดีกว่า รอบแรกๆ ผม Fail เหมือนกัน จากหมวดที่ประเมิน จะเห็นมันเขียนไม่ค่อย…
Create a gitignore file with dotnet cli
มาแปลง Console App ให้เป็น .NET Tools (NuGet)
.NET Tools คือ อะไร แปลง Console App ให้เป็น .NET Tools (NuGet) Prerequisite: CS Project ต้องเป็นรูปแบบใหม่ที่มากับ .NET Standard ครับ ถ้า .NET Framework แบบเดิมๆ ทางที่ดีแนะนำให้ขยับเป็น .NET LTS ครับ โดยผมใช้ Project ที่ทำมานานหลายปีแล้ว pingkunga/MergeDOTNETTestReport มาเป็นตัวอย่างที่ลองแปลง Console App ให้เป็น .NET Tools ขั้นตอนการแปลง Console App ให้เป็น…
The Cloud Camp Week#15 (NET Aspire / How to Build OBS / Project Pitch)
สัปดาห์นี้ทาง Jumpbox มีเชิญ Speaker เข้ามาเล่า+แบ่งปันประสบการณ์ให้คนที่เรียน Cloud Camp รอบนี้ โดยมีหัวข้อ ดังนี้ Introduction to NET Aspire – Old-Way – New-Way – ปรับยังไง Coupling & Cohesion สามารถดูได้จาก Blog ผมครับ Cohesion VS Coupling | naiwaen@DebuggingSoft ใช้ได้ตั้งแต่ Class > Microservice เลย – dotnet aspire ความเห็นส่วนตัว…
How to get output from dotnet test
dotnet test command, it runs by default in quiet mode (–verbosity quiet) To get some output from the adapter, run it in normal mode, by setting the verbose option to normal / detail In verbosity normal / detailed will show…
บันทึก Migrate .NET Framework > .NET6
Blog นี้เขียนดองมานานมาก ตั้งแต่กลางปีที่แล้ว แล้วค้างไปทำเรื่องอื่นๆ ตอนนี้จะเปิดตัว .NET8 แล้ว ถ้ารออีก อาจจะได้แชร์ปีปลายปีหน้าแทน 555 เลยคิดว่า เขียนให้หมดดีกว่า เดี๋ยวลืม Stage แรก เป็นส่วนของการเริ่มต้นเลย ตอนแรก Code มันจะยุ่งเหยิงนิดนึง แยกให้เป็นส่วนๆ นอกจากจัดกลุ่มตาม DLL ผมเอาตัว Layer Architecture มาช่วยได้ โดยแบ่งหน้าที่ ต้องคุยตามชั้นจากบน ลงล่าง ซึ่งมีรายละเอียดดังนี้ Stage1 แยก Logic ที่มันมั่วๆ มาปน UI Code-Behide / Controller มาแตกเป็น…
Fixed DevExpress.XtraPrinting Throw PlatformNotSupportedException
My ASP.NET6 WebAPI containers crashed. after add reference DevExpress.XtraPrinting.PrintingSystemBase and Full Exception here Root Cause Solution Reference