In this tutorial, we are going to cover how to integrate React with Asp.Net Core 3.1 using Entity Framework Core in visual studio code. We will use SQLite database in this project. So, first-of-all, we will install all the dependencies that we need in this project and then we will see how to setup a project using React and Asp.Net Core 3.1 and Entity Framework Core.
[Read more…]How to integrate Vue and Asp.Net Core 3.1 app using VS Code
In this tutorial, we are going to cover how to integrate Vue.js and Asp.Net Core 3.1 application using Entity Framework Core in Visual Studio Code. We will use PostgreSql database in this tutorial. So, we are going to build a SPA (Single Page Application).
[Read more…]Entity Framework Core 3.0 Cache Busting | Dotnet Detail
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…]Entity Framework Core 3.0 Bulk Insert Update and Delete – Asp.Net Core 3.0
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…]Entity Framework Core & Stored Procedure using Fluent API
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…]Define one to many relationship in Entity Framework Code First
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…]