22.2.3.12. DDL T4 Template Macro

MySQL Connector/NET 6.3 introduced the ability to convert an Entity Framework model to MySQL DDL code. Starting with a blank model, an entity model can be developed in Visual Studio's designer. Once the model has been created, the model's properties can be selected, and in the Database Script Generation category of the model's properties, the property DDL Generation can be found. The value SSDLToMySQL.tt(VS) can then be selected from the drop-down listbox.

Figure 22.28. DDL T4 Template Macro - Model Properties

DDL T4 Template Macro - Model
          Properties

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

Figure 22.29. DDL T4 Template Macro - Generate Database Wizard

DDL T4 Template Macro - Generate Database
          Wizard
Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout