How To
How to use stored procedure in Entity Framework Core
11/1/2024 2:21:28 PM 104
Using stored procedures in Entity Framework Core (EF Core) is a straightforward process.
How to add logging in ASP.NET
11/1/2024 2:11:12 PM 99
Here is code snippet that writes some text to log.txt file in web root folder.
How to get connectionstring from appsettings.json instead of being hardcoded in .NET Core
11/1/2024 1:59:23 PM 261
In .NET Core, it's a good practice to store your connection strings in the appsettings.json file instead of hardcoding them in your code.
How to fix 'System.Text.Json Deserialize() return empty values'
11/1/2024 1:23:37 PM 129
To fix issues where System.Text.Json.Deserialize() returns empty or default values, follow these steps.
How to display custom string for enum value in C#
10/29/2024 11:13:21 PM 185
In C#, you can display a custom string for enum values by using the Description attribute from the System.ComponentModel namespace.
How to launch browser and visit web site in C#
10/29/2024 3:42:29 PM 392
To launch a web browser and visit a website in C#, you can use the System.Diagnostics.Process class.
When should I use NVARCHAR Max?
10/29/2024 3:37:58 PM 284
Use NVARCHAR when column data sizes vary significantly. Opt for NVARCHAR(MAX) when the sizes are unpredictable and may exceed 4,000 byte-pairs.
How to Convert byte array to hex string in C#
10/29/2024 2:43:28 PM 198
To convert a byte array to a hex string in C#, you can use the BitConverter class or manually format each byte.
How to divide a integer and get decimal in C#
10/29/2024 4:29:17 AM 302
In C#, when you divide two integers using the / operator, the result is also an integer.
How to fix 'DevExpress.Images.ImageResourceCache.Default.GetImage' not working
10/28/2024 7:54:44 AM 109
If you're experiencing issues with DevExpress.Images.ImageResourceCache.Default.GetImage, here are some steps to resolve the problem.
How to find index of item in array in C#
10/25/2024 9:07:53 AM 283
To find the index of an item in an array in C#, you can use Array.IndexOf or Array.FindIndex method.
How to get AssemblyTitle in C#
10/25/2024 8:56:01 AM 209
In C#, you can retrieve the assembly title from the assembly attributes using reflection.