Oracle 5.0 Reference Manual page 1894

Table of Contents

Advertisement

{
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
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
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
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.
Connector/Net Tutorials
that was specified in the
Blue
MySQL Documentation
file.
web.config
page. You can also find details on how to install the
1874
Section 20.2.3.1, "Making a

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents