Reverse engineer a SQL Server .dacpac with the EF Core tooling

November 26, 2024 ยท View on GitHub

Nuget

Sample usage

CLI:

dotnet ef dbcontext scaffold ..\Db.dacpac ErikEJ.EntityFrameworkCore.SqlServer.Dacpac

PMC:

Scaffold-DbContext ..\Db.dacpac ErikEJ.EntityFrameworkCore.SqlServer.Dacpac

Current conventions

Use the -t parameter(s) to specify individual tables in this format: [dbo].[MyTable]

Known issues

If you would like to scaffold a seperate schema with Data Annotations, use the workaround described here

Feedback

Please report any issues, questions and suggestions here