This portion of the tutorial describes how to create a Windows Form
with MySQL connectivity. The item template to use for this operation
is named MySQL New Windows Form
. To open the Add
New Item window, right-click your windows form application and
select MySQL from the list of installed items.
The item template for adding a new MySQL Windows Form is similar to the MySQL MVC item template (see Section 8.1, “MySQL ASP.NET MVC Items”), but with three major differences:
You can create the MySQL Entity Framework model under the root path of the project.
When selecting the desired entity, you can also select the layout type in which the new form will display the entity data.
A
Resources
folder is added to the project that contains images used by the icons for the generated form.
The new form will have all the necessary back-end code to display the entity data, with the user interface (UI) based on the previously selected layout.