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…]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…]How to Create CRUD operations using Reactjs and Asp Net Core 2.0
In this tutorial, we are going to develop a simple “StudentRecord” web application which will perform the complete CRUD operations using Asp.Net Core 2.0 and Reactjs with the help of Entity Framework Core database first approach.
[Read more…]What is Entity Framework Core in ASP.NET Core 2.0
In this tutorial, we will take a look at Models, Entity Framework, and Migration in ASP.NET Core 2.0 Application. This is the very important tutorial because this ASP.NET Core tutorial will help you to connect your asp net core 2.0 application with database. [Read more…]