1. Trang chủ
  2. » Giáo Dục - Đào Tạo

5 asp dotnet core api building first m5 slides kho tài liệu training

13 27 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 13
Dung lượng 170,16 KB

Nội dung

Getting Acquainted with Entity Framework Core KEVIN DOCKX ARCHITECT @KevinDockx https://www.kevindockx.com Coming Up Introducing Entity Framework Core Working with Migrations Safely Storing Sensitive Data Seeding the Database Object-Relational Mapping Object-Relational Mapping (ORM) is a technique that lets you query and manipulate data from a database using an object-oriented paradigm Introducing Entity Framework Core Problem Relational models and object models not work very well together Tabular database format versus an interconnected object graph Solution An ORM: the library that implements the object-relational mapping technique It takes care of mapping between that tabular format and the object graph Introducing Entity Framework Core Entity Framework Core is a lightweight, extensible, and cross-platform version of Entity Framework Recommended for - New applications that don’t need the full EF6 feature set - NET Core applications Introducing Entity Framework Core Supports a variety of databases, even nonrelational ones Code-first or database-first approach Demo Creating Entity Classes Demo Creating a DbContext Demo Working with Migrations Demo Safely Storing Sensitive Configuration Data Demo Seeding the Database with Data Summary Object-Relational Mapping (ORM) is a technique that lets you query and manipulate data from a database using an object-oriented paradigm Entity Framework Core is a lightweight, extensible, and cross-platform version of Entity Framework Use annotations on entity classes to define primary and foreign keys, required fields, … Summary DbContext represents a session with the database and can be used to query and save instances of entities Migrations allow us to provide code to change the database from one version to another Use environment variables for safer storage of sensitive data Seeding the database is providing it with data to start with ... Framework Core Entity Framework Core is a lightweight, extensible, and cross-platform version of Entity Framework Recommended for - New applications that don’t need the full EF6 feature set - NET Core. .. - NET Core applications Introducing Entity Framework Core Supports a variety of databases, even nonrelational ones Code -first or database -first approach Demo Creating Entity Classes Demo Creating...Coming Up Introducing Entity Framework Core Working with Migrations Safely Storing Sensitive Data Seeding the Database Object-Relational

Ngày đăng: 17/11/2019, 08:27