InCodeXbyRavindra DevraniSingleAsync() vs SingleOrDefaultAync() vs FirstAsync() vs FirstOrDefaultAsync() vs FindAync()I don’t think there is any need of introduction. Let’s jump to the code section. We coders understand with code more. Let’s understand the…Feb 15Feb 15
InCodeXbyRavindra DevraniCreating and installing a CLI tool with .netIn this tutorial we are going to learn:Dec 19, 2024Dec 19, 2024
InCodeXbyRavindra DevraniASP.NET Core API CRUD With PostgresWhen we create an application with .NET, we tend to use the Microsoft tech stack: Visual Studio IDE, Microsoft SQL Server, Windows…Aug 15, 2024Aug 15, 2024
InCodeXbyRavindra DevraniIntegration Testing With Authentication In AspNetCoreIntegration testing is a software testing technique, where individual units of a program are integrated together and tested as a group for…Sep 9, 2024Sep 9, 2024
InCodeXbyRavindra DevraniUnit Testing in .NET Core with n-substituteAs the name suggesting , Unit testing is a software testing where smallest units of the application such as methods are tested in the…Sep 3, 2024Sep 3, 2024
Ravindra DevraniUnit of work with generic repository in .NET with EF CoreThe Unit of Work Pattern is all about coordinated changes to the database. It groups multiple operations, such as inserts, updates, and…Nov 2, 2024Nov 2, 2024
InCodeXbyRavindra DevraniDotnet Core API CRUD with dapper and postgresql💻Source Code: https://github.com/rd003/PostgressDapperDemoNov 10, 2024Nov 10, 2024
Ravindra DevraniHandle exceptions globally in .net with IExceptionHandler and IProblemDetailServiceProblem details is a standard way to communicate error details in HttpResponse, defined in rfc 7807. Standard ProblemDetails Properties:Nov 22, 2024Nov 22, 2024
InCodeXbyRavindra DevraniSecuring The .NET 9 App: Signup, Login, JWT, Refresh Tokens, and Role Based Access with PostgreSQLREST APIs are stateless, so server does not store any information about the client. So we can not authorize the rest application in a…Dec 11, 20245Dec 11, 20245
InCodeXbyRavindra DevraniContainerizing A .NET App With Postgres Using Docker ComposeIn this tutorial, we are going to containerize the .NET Web API application with docker and postgres. I am assuming you are familiar with…Aug 21, 20242Aug 21, 20242
Ravindra DevraniContainerize Your .NET Application with SQL Server Using Docker ComposeIn this tutorial, we are going to containerize the .NET Web API application with docker. I am assuming you are familiar with docker. At…Aug 19, 20241Aug 19, 20241
Ravindra DevraniSerilog in .net 6 and 7In your development journey you have faced so many runtime exceptions. You have handled that with try catch block. But in the runtime you…Feb 12, 20231Feb 12, 20231
Ravindra DevraniWrite dapper effectively with generic methodsDapper is a micro ORM for database connectivity in .net and it’s been around for quite a while. It is loved by most of the developers…Feb 12, 2023Feb 12, 2023
Ravindra DevraniJWT Authentication and role based authorization in .net 6/7JWTMar 16, 20231Mar 16, 20231
InCodeXbyRavindra DevraniCatch exceptions globally in .net core apisThere are to ways of catching exception in .net core, one is using try/catch and other one is catching them globally. Although there is…Mar 19, 2023Mar 19, 2023
Ravindra DevraniOutput Caching in .net 7Output Caching middleware has introduced in .net 7 , that is used to enable caching in your application. It can be used in any .net core…Jul 29, 2023Jul 29, 2023
Ravindra DevraniImage upload/CRUD operations in .net core APIsIn this article, we will learn how to upload/update/delete/read images in .net core APIs. I hate to give long and unnecessary intros, So…Apr 17, 20241Apr 17, 20241
Ravindra DevraniSeparating the DI setup from program.cs fileLet’s take a look at the program.cs file below.Apr 4, 2024Apr 4, 2024
Ravindra DevraniUpload files in blazor serverIn this blog post we are going to learn how to upload files in the blazor server application. I am going to upload images in this tutorial…Nov 14, 2023Nov 14, 2023