Skip to content

Replace missing SSDLToSQL10.tt with a C# SsdlToDdl generator - #4

Merged
robertmclaws merged 1 commit into
mainfrom
csharp-ssdl-to-ddl
Sep 14, 2026
Merged

robertmclaws merged 1 commit into
mainfrom
csharp-ssdl-to-ddl

Conversation

@robertmclaws

@robertmclaws robertmclaws commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

The Generate Database Wizard failed because VS 18 no longer ships SSDLToSQL10.tt under Entity Framework Tools. This ports that template to C# so the wizard and the CLI share one generator that does not need the file.

What changed

  • Added SsdlToDdl in DatabaseGeneration (tables, PKs, FKs, SQL Server vs Compact, drops from existing SSDL).
  • The wizard uses it for the in-box SSDLToSQL10.tt path (including a stored $(VSEFTools)/DBGen/SSDLToSQL10.tt value). Custom .tt files still go through T4.
  • Added edmx ddl for the same pipeline outside Visual Studio.

Checks

  • SsdlToDdlTests plus the rest of Microsoft.Data.Entity.Tests.Design.DatabaseGeneration: 36/36 on net10.0 and net48.
  • edmx ddl against the Northwind sample wrote a SQL script.

The Generate Database Wizard and `edmx ddl` now share one in-box
implementation that does not require the old VS DBGen template file.

Co-Authored-By: Grok 4.6 <grok@x.ai>
@robertmclaws
robertmclaws merged commit bd73d20 into main Sep 14, 2026
1 of 5 checks passed
@robertmclaws
robertmclaws deleted the csharp-ssdl-to-ddl branch September 14, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant