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

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

This bullet list with animations Introducing Entity Framework Core Working with Migrations Safely Storing Sensitive Data Seeding the Database Coming Up... Object-Relational Mapping ORM

Trang 1

@KevinDockx https://www.kevindockx.com

ARCHITECT

KEVIN DOCKX

Getting Acquainted with Entity Framework Core

Trang 2

This bullet list

with

animations

Introducing Entity Framework Core Working with Migrations

Safely Storing Sensitive Data Seeding the Database

Coming Up

Trang 3

Object-Relational Mapping (ORM) is a technique that lets you query and manipulate data from a database using an object-oriented paradigm

Object-Relational Mapping

Trang 4

Relational models and object models do

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

Trang 5

This slide is

with

animations

Entity Framework Core is a lightweight, extensible, and cross-platform version of Entity Framework

Recommended for

EF6 feature set

Introducing Entity Framework Core

Trang 6

This slide is

with

animations

Supports a variety of databases, even non-relational ones

Code-first or database-first approach

Introducing Entity Framework Core

Trang 7

This bullet list

with

animations

Creating Entity Classes

Trang 8

This bullet list

with

animations

Creating a DbContext

Trang 9

This bullet list

with

animations

Working with Migrations

Trang 10

This bullet list

with

animations

Safely Storing Sensitive Configuration Data

Trang 11

This bullet list

with

animations

Seeding the Database with Data

Trang 12

This bullet list

with

animations

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

Trang 13

This bullet list

with

animations

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

Summary

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