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

Taught in

References