Book Image

Mastering Entity Framework Core - Mapping, Querying and Manipulating Data [Video]

By : Sergey Barskiy
Book Image

Mastering Entity Framework Core - Mapping, Querying and Manipulating Data [Video]

By: Sergey Barskiy

Overview of this book

Entity framework is an Object Relational Mapping (ORM) framework that offers an automated mechanism to developers for storing and accessing the data in the database. In order to survive in this growing market, the knowledge of a framework that helps provide easy access to databases, that is, Entity Framework has become a necessity. This Video will provide .NET developers with this knowledge and guide them through working efficiently with data using Entity Framework Core.You will start by understanding ORM concepts, before then moving on to discuss advantages of Entity Framework over ADO.NET. Next you will see how.NET Core fits into the overall pictures and go over the environment necessary to follow along with the course. Further you will learn to build your first sample project to see EF in action here you will learn to create database and add data to it. Further you will learn about Mapping Entities and Database structure here you will see how to create mapping between objects and database structures, how to define tables and columns. You will learn the specifics or SQL Server types and how to map them to .NET Types. You will define all possible types of relationships for your database model. Next you will dive into Querying data you will learn the basics of Linq then you will start with simple queries, advance to aggregations and projection techniques. You will see how to obtain object graphs and talk about performance. Next you will learn Manipulating data, you will learn how to create, read, update and delete data, commonly referred to as CRUD operations. You will see the differences between object graphs and individual objects when it comes to CRUD features of Entity Framework Core. Finally you will learn best practices examples.
Table of Contents (5 chapters)
Chapter 5
Manipulating Data
Content Locked
Section 2
Insert Data
In order to be able to insert new data into the database through web service calls, we need to add the insert implementation to our Web API controller - Learn how to properly decorate and use the correct signatures on our insert method - See how the Entry() method on DbContext can help us use a set entity state to be added - See how an entire object graph can be inserted into the database with a single Add method call