動画検索
関連広告
検索結果
NET 6 🚀 EF Core & SQLite with Code First Migrations
Create a new Web API Project
Install Entity Framework Core Tools & NuGet Packages
Add the Connection String for SQLite
Create a New Entity
Implement the DataContext
Register the DataContext
Utilize Code First Migrations
Fixing the Connection String
Use the DB Browser for SQLite
Add a Controller with GET & POST Methods
Test Everything
Intro
Demo app overview (win form app)
What is SQLite
How to create and build SQLite Database: DB Browser for SQLite
Database Structure
Adding the Database to the project
Adding the Connection string
SQLite and Dapper NUGet packages
Data access setup
Retrieving data form DB: LoadPeople()
Sending data to DB: SavePerson()
Wiring up the Demo app
Workings with the Database
Summary and concluding remarks
Use Existing SQLite Database
What We'll Learn in This Video
Also Works on .NET MAUI!
Add Database File to Embedded Resources
Install SQLite NuGet Package
Inspect Existing Database Schema
Copy Existing Database File to Filesystem
Create Database Models
Setup Database Connection
Implement UI to Show Database Data
Retrieve Data from Database
Running the Sample App
Learn More About SQLite or Databinding?
Introduction to SQLite CRUD Operation in EFCore.
Creating Web API project.
Installing EFCore, EFCore.Tools NuGet packages.
Setting up database connection string in appsettings.json.
Registering database connection in program.cs file.
Installing EFcore.SQLite NuGet package.
Creating Application Db Context class.
Creating User model.
Adding Database-Migration.
Adding User API Controller.
Creating Constructor to inject database connection.
Adding CREATE action method / operation.
Adding READ action method / operation.
Adding UPDATE action method / operation.
Adding DELETE action method / operation.
Using DB Browser for SQLite to access the SQLite db.
Introduction
Learning objectives
Compare storage options
The file system
Access the app sandbox
Guidelines for saving data in iOS apps
Knowledge check
Store data locally with SQLite
When to use a database
What is SQLite-net?
How to connect to a SQLite database
Model a SQLite table
How to do basic read and write operations
Execute a SQLite query by using LINQ
Exercise - Store data locally with SQLite
Exercise - Use SQLite asynchronously
Summary and conclusion