There are a few ways to handle exceptions in asp.net core 2.1. using Middleware is so straightforward, and it handles the application exceptions as well as exceptions from filters and you can have ful...
Thursday, 08 November 2018
GraphQL is an open-source runtime for filling data query language introduced by Facebook. It could be an alternative to REST as it allows the client to define the structure of the data query based on ...
Friday, 02 November 2018
There are lots of tools and libraries out there for monitoring the Dot Net web applications. I personally use several tools based on my need. One of the tools I've always liked is Netling. It'...
Monday, 29 October 2018
As I'm talking with Asp.net core these days, so I'm supposed to be eager about that! In asp.net core, in order to enable the CORS, you should refer to application startup and ConfigureServices...
Tuesday, 23 October 2018
Accessing to HttpContext in asp.net core application is just like before, for example:
public class MyController : Controller
{
&n...
Thursday, 18 October 2018
In asp.net applications, directory browsing has enabled some versions and you let the users see all of the content and structure of your application like the picture below:
To the best of...
Saturday, 13 October 2018
I don't know why I'm writing this blog post right now! I was supposed to write it when I was honored to receive this topless book as a gift by Scott Millett about 4 years ago! Now It's...
Wednesday, 10 October 2018
In earlier versions of Entity Framework( before Entity Framework . Core) when you wanted to create an inner table from two Entities, you would be able to use entity framework mapping in a way to creat...
Friday, 21 September 2018
Using the in-memory database of entity framework is super easy. Create an asp.net core and reference the following NuGet package if it's not referenced( it's been referenced in asp.net core 2 ...
Tuesday, 18 September 2018
In asp.net core application, Http requests are handled and processed by Middleware and every Http response would be created when the request has been passed to the middleware suite. For example, MvcMi...
Monday, 17 September 2018
There are different kinds of authentication. One of the most used ones is basic authentication that doesn’t expire like a bearer token and you need to send a username and password per each reque...
Friday, 07 September 2018
I've heard a lot about telling others the future plans or achievements. In my view, it doesn't work for everybody! Despite I personally get motivation even by the reaction o...
Friday, 07 September 2018
Maybe you have heard about an African proverb that says, “Smooth seas do not make skillful sailors.” I hardly believe this one as I can give you hundreds of example about the people around...
Monday, 27 August 2018
TagHelpers in ASP.NET Core are used to generate HTML or other markups for a web page. They provide a way to create custom HTML elements, with their own attributes and behavior, that can be used in Raz...
Monday, 20 August 2018
If you have used EF core, you have seen that there is no HasPrecision method to use and all of the decimal data types will be map as decimal(18,2) in SQL server by default. We used to map de...
Saturday, 18 August 2018
I was recently looking for a verification system and came across with Sinch. It's been satisfactory until now. After installing the library by nuget I created a wrapper for SMS, hope it be useful!...
Tuesday, 14 August 2018
As I travel a lot and see a lot of people, either as fellow travelers or as the people from other cities and countries. It's really interesting that how much you make communication with people, yo...
Wednesday, 08 August 2018
In my earlier related post to this subject, I wrote that there is config in asp.net core to enable the static file access but that's not Ok for every sort of file, for example, you can't acces...
Friday, 03 August 2018