Introduction The creation of unit tests is an important step in ensuring the quality of a project. In general, most public methods are tested, but what if you want to test a non-public part of the project? Putting all classes…
Tag: C#
Streaming video asynchronously in ASP.NET Core 2 with Web API
Introduction No matter what kind of project you are working on, at some point you will find the need to stream videos in your website or mobile apps for many purposes. So, we will learn how we can live…
Injection Dependency: Bring your own container in .NET Core Web API, example with Simple Injector
Introduction of Simple Injector Simple Injector is an easy-to-use Dependency Injection (DI) library for .NET that supports .NET Core, Xamarin, Mono and Universal apps. Simple Injector is easily integrated with frameworks such as Web API, MVC, WCF, ASP.NET Core and…
Injection Dependency: Bring your own container in .NET Core console App, example with Simple Injector
Introduction of Simple Injector Simple Injector is an easy-to-use Dependency Injection (DI) library for .NET that supports .NET Core, Xamarin, Mono and Universal apps. Simple Injector is easily integrated with frameworks such as Web API, MVC, WCF, ASP.NET Core and…
Entity Framework Core 2 – Breaking changes and obsolescence
Entity Framework Core 2 was released on August 14th. It brought new features. On this article I will explain : Breaking changes and obsolete features The IDbContextFacfory<T> interface was replaced by IDesignTimeDbContextFactory<T>. This interface is required when you want to add new…
Entity Framework Core 2 – Explicit compiled queries
Entity Framework Core 2 was released on August 14th. It brought new features. On this article I will explain one of them: Explicitly compiled queries Entity Framework Core included query caching since version 1, but there is still some…
Entity Framework Core 2 – DbContext Pools
Entity Framework Core 2 was released on August 14th. It brought new features. On this article I will explain one of them: DbContext Pools Normally when a DbContext is injected somewhere by the dependency injection framework, a new instance…
Entity Framework Core 2 – Pluralization and Singularization
Entity Framework Core 2 was released on August 14th. It brought new features. On this article I will explain one of them : Pluralization and Singularization There is a new IPluralizer interface. It can be used to pluralize table names when…
Entity Framework Core 2 – Table splitting
Entity Framework Core 2 was released on August 14th. It brought new features. On this article I will explain one of them : Table splitting Table carving looks like owned types, but it’s not the same thing. But an…
Entity Framework Core 2 – Owned types
Entity Framework Core 2 was released on August 14th. It brought new features. On this article I will explain one of them : Owned types They existed in previous versions of Entity Framework under the name of “complex types”…