Connector/Net Tutorials
1874
{
Profile.UI.Color = DropDownList1.SelectedValue;
}
...
3. Save all files and build the solution to check that no errors have been introduced.
4. Run the application.
5. Enter your name, age and select a color from the listbox. Now store this information in your profile
by clicking Store Profile. Note that if you do not select a color from the listbox your profile will use
the default color
Blue
that was specified in the
web.config
file.
6. Click Clear Form to clear text from the textboxes and the label that displays your chosen color.
7. Now click Retrieve Profile to restore your profile data from the MySQL database.
8. Now exit the browser to terminate the application.
9. Run the application again. Note that when the page loads your profile information is restored from
the MySQL database.
In this tutorial you have seen how to using the MySQL Profile Provider with MySQL Connector/Net.
20.2.4.5. Tutorial: Using an Entity Framework Entity as a Windows Forms Data Source
In this tutorial you will learn how to create a Windows Forms Data Source from an Entity in an Entity
Data Model. This tutorial assumes that you have installed the World example database, which can
be downloaded from the
MySQL Documentation page
. You can also find details on how to install the
database on the same page. It will also be convenient for you to create a connection to the World
database after it is installed. For instructions on how to do this see
Section 20.2.3.1, “Making a
Connection”
.
Creating a new Windows Forms application
The first step is to create a new Windows Forms application.
1. In Visual Studio, select File, New, Project from the main menu.
2. Choose the Windows Forms Application installed template. Click OK. The solution is created.
Adding an Entity Data Model
You will now add an Entity Data Model to your solution.
1. In the Solution Explorer, right-click your application and select Add, New Item.... From Visual
Studio installed templates select ADO.NET Entity Data Model. Click Add.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...