Category: .NET

  • How to use Visual Studio IEnumerable Debugger Visualizer

    Imagine you’re debugging your code in Visual Studio, and you come across a variable holding a bunch of data, like a list of customers or a shopping cart full of items. Normally, inspecting this data can be a pain. You might have to squint at a long line of text or click through endless menus.…

  • Using C# Record Types

    I find Zoran Horvat’s videos easy to follow and understand. Here is a new short video he published about C# Record Types. A Record is a regular class with two public read-only properties. Besides construction, no mutation on the object Console.WriteLine nicely prints a record object. Linq distinct works well with the list of records…

  • .NET Core Worker Service with EF Core

    In ASP.NET Core applications, the services can be scoped, that can be resolved or instantiated at the start of a request, and disposed of at the end of a request. But in Worker Service type of applications, the definition of scope is not clear. That’s why we need to implement scoping ourselves. Let’s say every…

  • Linode Object Storage with .NET and C#

    Linode Object Storage is now available on Frankfurt data centre [1]. It is much more affordable and easier to manage unstructured data such as content assets (images, files etc..), sophisticated and data-intensive storage challenges around artificial intelligence and machine learning. Since it is S3-compatible object storage, we can use AWS SDK for .NET for any…

  • ASP.NET Core 3 Service…

    ASP.NET Core 3 Service Registration – AddControllers() AddControllersWithViews() AddRazorPages() With v3 and higher, there are several ways to register MVC. This way the application can only use what it requires, not the whole framework. This would result with a smaller size and being not sure, better performance. AddControllers() If you are developing an API, go…

  • Deserialize json array with System.Text.Json

    Json Data And the class and method for deserialization A post about the performance of system.text.json #json #System.Text.Json #net-core #dotnet

  • JSON Type with MySQL & EF Core

    Since MySQL 5.7.8, you can leverage the built-in json data type to store flexible, semi-structured data in your database. This approach offers several benefits over traditional relational models, especially when dealing with complex or frequently changing data. Let’s explore how to effectively work with JSON data in MySQL using Entity Framework Core (EF Core). Storing…

  • .NET Core and .NET Standard

    A nice article from MSDN Magazine: .NET Standard – Demystifying .NET Core and .NET Standard And a great video series about .NET Standard from the same author: https://www.youtube.com/playlist?list=PLRAdsfhKI4OWx321A_pr-7HhRNk7wOLLY #net-standard #net-core #resources #dotnet

  • Oracle Function & .NET sysdate problem

    After I shared one solution about oracle, iis and sysdate problem, I got another similar error. This time, the function was getting the paramater sysdate with time added. I noticed this because the function was calculating default insterest of a price, and each hour it was increasing the total amoun. After many tries, I removed…

  • Changing .NET Globalization for chars

    You may see invalid chars after a fresh install in IIS 7.0,  from here you can change IIS char settings