@linkedin @Link @Link2


  1. Performance optimization is a critical aspect of developing robust and efficient applications, especially when working with a data access framework like Entity Framework Core (EF Core) in conjunction with the powerful .NET 7 platform. In this article, we will explore some performance optimization tricks and tips with EF Core and demonstrate their application in a real-time example using an accounting application scenario. Before diving into the optimization techniques, let’s briefly understand EF Core and its relevance in the .

  2. Pros and Cons of Entity Framework’s Compiled Query Entity Framework (EF) is an object-relational mapper (ORM) that allows developers to interact with databases using objects. EF provides a number of features that make it a powerful tool for data access, including compiled queries. Compiled queries are pre-processed by EF and stored in memory. This can improve performance by reducing the amount of time that EF needs to spend parsing and executing the query each time it is used.

    Entity Framework C# .NET Performance

  3. In Entity Framework Core, there are two main ways to retrieve data from a database: using a List or using a Queryable. A List represents a collection of objects that have already been retrieved from the database. Once the data is in a List, any further operations on it are performed on the data in memory rather than on the database. This means that any filtering, sorting, or paging operations are performed on the client-side, which can be less efficient than performing them on the server-side.

  4. C# and .NET Framework (4.5 & Core) supports asynchronous programming using some native functions, classes, and reserved keywords. Before we see what is asynchronous programming, let’s understand what is synchronous programming using the following console example. static void Main(string[] args) { LongProcess(); ShortProcess(); } static void LongProcess() { Console.WriteLine("LongProcess Started"); //some code that takes long execution time System.Threading.Thread.Sleep(4000); // hold execution for 4 seconds Console.WriteLine("LongProcess Completed"); } static void ShortProcess() { Console.

    csharp async await task

  5. Introduction In this article, we will learn how to test .NET applications with Xunit. We will learn how to write unit tests and integration tests. We will also learn how to mock dependencies and how to use the Moq library to create mocks. Prerequisites To follow along with this article, you will need the following: .NET 6 SDK or later Visual Studio 2022 or JetBrains Rider Basic knowledge of C# Basic knowledge of .

    xunit testing c# .net

  6. Caching is a crucial aspect of web application development. It can help reduce the load on the database, speed up application performance, and improve scalability. Redis is a popular in-memory data store that can be used for caching in ASP.NET Core applications. In this article, we will go through the steps involved in using Redis caching with ASP.NET Core and .NET 7. Prerequisites To follow along with this article, you should have the following:

    Post activity