4.17 DDL T4 Template Macro

Convert an Entity Framework model to MySQL
DDL code. Starting with a blank
model, you can develop an entity model in Visual Studio's
designer. Once the model is created, you can select the model's
properties, and in the Database Script Generation category of the
model's properties, the property DDL
Generation can be found. Select the value
SSDLToMySQL.tt(VS) from the drop-down
listbox.

Note

The ability to convert an Entity Framework model to MySQL
DDL code was added in MySQL Connector/Net
6.3.0.

Figure 4.77 DDL T4 Template Macro - Model Properties

Right-clicking the model design area displays a context-sensitive
menu. Selecting Generate Database from Model
from the menu displays the Generate Database
Wizard. The wizard can then be used to generate MySQL
DDL code.