Tag Archive

Tag Archives for " ASP.NET Core "
1

Why you should join .NET Core and ASP.NET Core train

Introduction I have been surprised by the fact that so many people are not aware of Microsoft’s open source shift over last 5 (and maybe few more) years. Lots of people are not aware of current state of .NET, .NET Core and ASP.NET Core. And I do not blame them, they have been occupied by […]

Continue reading

ASP.NET Core Configuration – Reloading, Binding, Injecting

Introduction In the last post, we talked about ASP.NET Core Configuration in general. We will see how is it set up by default from ASP.NET Core. We also talked about sources and that order matters. This time we will talk about mapping configuration to classes. We will also talk about various ways of injecting configuration […]

Continue reading

ASP.NET Core Configuration

Introduction ASP.NET Core configuration differs greatly from standard ASP.NET. Instead of web.config or any other way to set up the configuration we use built-in Configuration framework that comes with ASP.NET Core. It is still key-value pairs collection at the end, but we can obtain those values from various sources. One of default sources is appsettings.json […]

Continue reading
7

EntityFramework Core – Add an implementation of IDesignTimeDbContextFactory

Problem Your DbContext in a separate project – class library project. You are trying to add new migration and update database, and you are running into this error: Unable to create an object of type ‘CodingBlastDbContext’. Add an implementation of ‘IDesignTimeDbContextFactory’ to the project, or see https://go.microsoft.com/fwlink/?linkid=851728 for additional patterns supported at design time.   […]

Continue reading

ASP.NET Core – Best practices (tips and tricks) – an opinionated approach – Part 2

 Introduction In the last post, we talked about tips and tricks, different strategies and approaches to make your code and project easier to maintain. This post is the second part in the series.   Avoid HTML Helpers – Use Tag Helpers We should avoid using HTML Helpers in favour of Tag Helpers. Tag Helpers are […]

Continue reading
1

ASP.NET Core – Best practices (tips and tricks) – an opinionated approach – Part 1

Introduction – ASP.NET Core Best Practices This post is about ASP.NET Core best practices post. We will talk about some of the best practices while working with ASP.NET Core. It is a collection of tips and tricks, different strategies and approaches to make your code and project easier to maintain. Also, it will be more pleasant […]

Continue reading

ASP.NET Core – ConfigureServices vs Configure

Introduction We already talked about Configuration method inside of Startup when we talked about requests and middleware. In this post, we will see what exactly ConfigureServices and Configure methods are for and how they differ. In ASP.NET Core we have a Startup class where all the configuration is done and processed once the application is […]

Continue reading
1

ASP.NET Core SignalR – Simple chat

Introduction In the last post, we briefly mentioned what SignalR is all about and talked about the history of the SignalR. In this post, we will be building a simple chat. Yes, a brand new chat. I see you thinking: “Really creative and unique..”. Do forgive me for that! However, in next few posts, we […]

Continue reading