Change schema name in Entity Framework Core

When creating objects in the DB Entity Framework will use the default schema of the database (usually dbo) by default. Thankfully there are two easy ways to change the schema name in EF Core…

Fluent API when we can set default schema for all objects or on an object by object basis…

… and via Data Annotations

Leave a Reply

Your email address will not be published. Required fields are marked *