An open API service indexing awesome lists of open source software.

https://github.com/timothyjan/razorpagesmovie

Movie Database using Razor Pages web app with ASP.NET Core
https://github.com/timothyjan/razorpagesmovie

Last synced: 8 months ago
JSON representation

Movie Database using Razor Pages web app with ASP.NET Core

Awesome Lists containing this project

README

          

# RazorPagesMovie
Movie Database using Razor Pages web app with ASP.NET Core


Tutorial: Create a Razor Pages web app with ASP.NET Core link


Entity Framework Core (EF Core)


  • The app's model classes use Entity Framework Core (EF Core) to work with the database.

  • EF Core is an object-relational mapper (O/RM) that simplifies data access.

  • You write the model classes first, and EF Core creates the database.

Scaffold the movie model


  • After creating the data model by adding the necessary properties to the class.

  • The scaffolding tool produces pages for Create, Read, Update, and Delete (CRUD) operations for the model.

The migrations feature in Entity Framework Core provides a way to:


  • Create the initial database schema.

  • Incrementally update the database schema to keep it in sync with the app's data model. Existing data in the database is preserved.

  • Tools > NuGet Package Manager > Package Manager Console. ~Add-Migration NewDataModelField and ~Update-Database