Api Versioning in Dotnet Core

Api versioning in .net core

Photo by Jan Loyde Cabrera at medium.com

When you are going to do some breaking changes in your apis, it is better to create a new version for that, so that user don’t freaked out. They still can use the older APIs and get ready for new changes. There are various way to create a versions of your APIs like

  1. Query string
  2. URL
  3. HTTP header

If you prefer video version then you can checkout this video with same content.

[Read More]

Angular Autocomlete With Ng Select

Angular Autocomlete With Ng Select

There are various packages available for implementing autocomplete in angular and we are going to use the simplest one (ng-select).

Let’s finish talking and need to start write code. Let’s install ng-select package from command line

npm install --save @ng-select/ng-select

[Read More]

Angular pagination with infinite scroll (using ngx-infite-scroll)

angular infinite scroll

Photo by Ajda ATZ on Unsplash

Sometimes we get a condition where you don’t want to display all the data at once. Initially we display some data, and when we scroll down ,we loads more data. This kind of behaviour you can see in youtube, instagram or facebook. You might even spend much time of your day on just scrolling down. So we are gonna learn how to do that.

[Read More]

Write dapper effectively with generic methods

Dapper tutorial with dotnet core

Dapper is a micro ORM for database connectivity in dotnet and it’s been around for quite a while. It is loved by most of the developers because of its simplicity and performance.

Why dapper?

With the help of dapper you can quickly access the data without writing too much code. It performs very well because we directly write queries and executes them. Developers who loves to work with queries and for the projects, where performance really matters where you wants to write very optimized queries, dapper can be the good choice.

[Read More]

Serilog in .NET

serilog-in-dotnet

In your development journey you have faced so many runtime exceptions. You have handled that with try catch block. But in the runtime you never know where that error has happened and you have to trace that whole section with putting breakpoints. Sometime you have thought that I wish.. I would get notified whenever that exception occur. Then the logging frameworks comes in the play.

Although .net core comes with its own logging mechanism but it have very limited options for logging. With 3rd party logging framework or 3rd party logging library you have multiple options, like you can log into files, console, database and so on.

[Read More]