PinnedPublished inCodeXSecuring 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, 2024965Dec 11, 2024965
PinnedHandle 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, 2024108Nov 22, 2024108
PinnedOutput 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, 20235Jul 29, 20235
Published inCodeXSingleAsync() 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 151Feb 151
Published inCodeXDatabase first approach with DotNet CoreI have used database first approach in the .NET Framework 4.X. But It is the first time I am trying to use Db First approach in the .NET…Feb 112Feb 112
Published inCodeXWhat makes your query Non-SARGableA query is SARGable (Search ARGument able) if a database engine can take advantage of index.Jan 291Jan 291
Published inCodeXSQL SERVER: Table scan, clustered index scan, index seek, RID lookup, Key lookupInitially, it was not intended to be an article. I was tinkering around sql and documenting few things, then I thought, it could turnout to…Jan 112Jan 112
Published inCodeXCreating and installing a CLI tool with .netIn this tutorial we are going to learn:Dec 19, 20246Dec 19, 20246
Published inCodeXDotnet Core API CRUD with dapper and postgresql💻Source Code: https://github.com/rd003/PostgressDapperDemoNov 10, 2024Nov 10, 2024
Unit 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
Published inCodeXSet bearer token automatically to each request in the postmanWhen we work with postman to test the endpoints, and those endpoints are authorized, each time (until it expires) we need to pass the…Sep 22, 2024Sep 22, 2024
Published inCodeXIntegration 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
Published inCodeXUnit 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
Published inCodeXContainerizing 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
Containerize 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
Published inCodeXASP.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
Higher-order functions in c#Higher-order functions (HOF) are functions that can take a function as an argument or return a function or both. In C#, higher-order…Aug 13, 2024Aug 13, 2024
Understanding the Command Design Pattern (c#)The Command Pattern is a behavioral design pattern that turns a request into a stand-alone object containing all the information about the…Aug 12, 2024Aug 12, 2024