In this tutorial, we are going to cover different kinds of entity framework core cache busting techniques with simple examples. Actually, when we run a query in EF Core, the DbContext in it automatically caches the data that it retrieves from the database using query. In some cases it is helpful because you don’t need to hit database in every request. But there are some cases in which data changes outside the context and then in these cases the query retrieves stale data. Now, the question is how can we handle this situation using entity framework core? So, we will see how to bust cache in entity framework ( EF ) Core.[Read more…]
In this tutorial, we are going to cover Entity Framework Core (EF Core) bulk insert, update and delete options using Asp.Net Core 3.0 in Visual Studio 2019. We will use entity framework core Bulk extension to insert, update and delete multiple records. There are some other solutions to insert, update and delete multiple records in the fastest way, but using Bulk extension is the most significant way to insert, update, and delete multiple records.[Read more…]
In this tutorial, we are going to cover crud operations (create, read, update, and delete) using entity framework core & stored procedure with Fluent API. So, first-of-all, we will add a model class in our project and create a database using migrations and then we will create stored procedures for insert, update and delete using Fluent API. Then we will perform insert, update and delete operations using entity framework core.[Read more…]
In this tutorial, we are going to learn how to define one to many relationship in entity framework code first approach between two entities (domain classes) using entity framework 6. First-of-all, we will create two entities (domain classes) Employee.cs and Company.cs and then we will see different types to define a relation between two entities using by following conventions and then we will define by using fluent API configurations.[Read more…]
In this tutorial, we are going to learn Angular 7 CRUD with web API using Asp.Net Core with Entity Framework Core. We will use visual studio code to build this small application.
In this tutorial, we are going to learn how to implement Angular Authentication and Authorization with Angular 6 on client-side and ASP.NET Core on the server side using (JWT)JSON Web Tokens and Auth0. As you know securing your application is one of the toughest things to pull off and how important it is to implement in the application. After this tutorial series, you will be able to understand how to protect APIs, Routes, and Roles. [Read more…]
In this tutorial, we will learn how to create web api in asp net core using Entity Framework Core. ASP.NET Core is a lightweight runtime library. It is a cross-platform that can run on Windows, Linux, and Mac. [Read more…]