code first
An approach in which the C# entity classes are the source of truth for the database model and migrations generate the schema from them.
In more detail
The alternative, database first, generates entity classes from an existing database. Code first does not make the database disposable: migrations are reviewed and applied deliberately like any other code.
Related terms
- database migration — A scripted, versioned change to a database's structure, such as adding a table or a constraint.
- Entity Framework Core — Microsoft's object-relational mapper for .NET, which lets code query and save database data as C# objects and translates LINQ into SQL.
- entity — A thing in an application's domain with its own identity, such as a user, account or product, usually stored in a database.
Taught in
- Entity Framework Core: Code First and Migrations — Modern .NET Core, C# & Enterprise Microservices