Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learning Entity Framework Core
Rating: 4.5 out of 5(176 ratings)
754 students

Learning Entity Framework Core

Learning Entity Framework Core from scratch for building efficient and secure web applications
Last updated 12/2017
English

What you'll learn

  • Explore object-relational mapping
  • Install Entity Framework Core
  • Create a database context
  • Create, execute, and roll back migrations
  • Execute complex relational models
  • Seed the database
  • Write custom SQL queries
  • Work with existing databases

Course content

5 sections31 lectures3h 57m total length
  • The Course Overview2:53

    This video provides an overview of the entire course.

  • What is an O/RM4:26

    Some of the viewers might not have any prior experiences with O/RMs so they might not know what an O/RM is.

    • Understand O/RM
    • Learn about EF Core

  • Starting a New Project4:38

    We need to work on a small starting project.

    • Start a new ASP.NET Core 2.0 project
    • Install Entity Framework Core along with its SQL Server provider using NuGet
    • Add a connection string to appsettings.json

  • The Database Context6:08

    The Database context is vital to application development with Entity Framework Core. The viewers need to know more about it.

    • Show an example of DbContext
    • Create a new DbContext
    • Add two DbSets to the newly created DbContext

  • Creating the Database7:48

    The viewers have created a new project, installed EF Core and even created a DbContext but they haven’t yet seen a database.

    • Register the DbContext with DI
    • Create a static DbInit class
    • Get an instance of the DbContext and call EnsureCreated

  • The SQL Server Object Explorer4:24

    The viewers would want to view the fake data inserted in the database. The SQL Server Object Explorer is a very helpful tool for that job.

    • Pull up the SQL Server Object Explorer
    • Use the View Data feature
    • Drop the database

  • Introduction to Entity Framework Core

Requirements

  • Prior exposure to C# is required to understand the course.

Description

Entity Framework is a highly recommended Object Relation Mapping tool used to build complex systems. This course provides a full learning path to getting productive with the Entity Framework Core. Designed with the intermediate developer in mind and utilizing all of the latest features introduced by EF Core 2.0 and ASP.NET Core 2.0.

In this course, you will learn how to create, execute and rollback your own migrations. You will also get familiar with everything you need to create complex relational models. You will explore some of the most important advanced features of the entity framework like shadow properties, database generated values and raw SQL queries. You will know how to take an existing database and write a project based upon it with minimal intervention.

By the end of this course, you will certainly have added Entity Framework Core to your toolbox.

About The Author

Dimitris Loukas is a software engineer currently writing Single Page Applications and APIs using Aurelia, ASP.NET Core, and Entity Framework for a trading software firm. He is also finishing his Computer Science studies at the University of Athens. He has worked for two start-ups in the past, is active in the open source community, and loves taking up small side projects. He is fascinated by modern JavaScript, C#, and the .NET Core.

Who this course is for:

  • This course is also for developers who have worked with ORMs in other languages and want to move to Entity Framework Core.