The module we build will require a database to store information. In the default Eleflex database, create schemas, tables, stored procedures, views and data that is related to your module. For simplicity of this exercise, create a new table called “dbo.Contact” with an integer primary key called “ContactKey” and another string column for “Name.”
The T4 text templates in the generated projects are driven based on an Entity Framework Data Model. When running the templates, it will iterate through the objects in the entity data model and create code files in the project to fulfil the design tiers required by the architecture. When the module generator was run, an Entity Data Model Name was defined in the user interface, the default name is “[Module Name]DB.” This will be the name of the model created.