Attributes | Values |
---|
type
| |
Date Created
| |
Date Modified
| |
label
| |
maker
| |
Title
| |
isDescribedUsing
| |
has creator
| |
attachment
| |
content
| - %VOSWARNING%
%META:TOPICPARENT{name="VirtProgressEntityFrameworkUsage"}%
---+++Creating an Entity Data Model (EDM) for the Progress isports database
The following steps can be used to create an Entity Data Model (EDM) for the Progress isports database:
1 Launch the Visual Studio 2008 SP1 IDE.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_1.png" style="wikiautogen"/>%BR%%BR%
1 Create a <b>Web Application</b> project by going to the <b>File</b> menu in Visual Studio and choosing <b>New Project</b>.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_2.png" style="wikiautogen"/>%BR%%BR%
1 When the New Project window appears, choose either <b>Visual Basic</b> or <b>Visual C#</b> as the programming language.%BR%%BR%
1 Within the language category, click on <b>Web</b> and select <b>ASP.NET Web Application</b> from the right-hand panel. %BR%%BR%
1 Choose a name for the project, for example *isports*, and click <b>OK</b>.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_3.png" style="wikiautogen"/>%BR%%BR%
1 This will create a new project called *isports*.
%BR% %BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_4.png" style="wikiautogen"/>%BR% %BR%
1 Select the <b>Project -> Add New Item</b> menu option.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_5.png" style="wikiautogen"/>%BR%%BR%
1 The <b>Add New Item</b> dialog will appear. Choose the <b>ADO.NET Entity Data Model</b> template. Give it the name <b>Model1.edmx</b> and click <b>Add</b> to start the creation of the ADO.Net Entity Data Model.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_6.png" style="wikiautogen"/>%BR%%BR%
1 In the <b>Entity Data Model Wizard</b> dialog <b>Choose Model Contents</b> page, select the <b>Generate from Database</b> model type and click <b>Next</b>.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_7.png" style="wikiautogen"/>%BR%%BR%
1 In the <b>Entity Data Model Wizard</b> dialog <b>Choose your Data Connection</b> page, select the <b>New Connection</b> button.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM1.png" style="wikiautogen"/>%BR%%BR%
1 In the <b>Choose Data Source</b>dialog, select the <b><nop>OpenLink Virtuoso Data Source</b> from the list and click <b>Continue</b>.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM2.png" style="wikiautogen"/>%BR%%BR%
1 In the <b>Connection Properties</b> dialog, specify the <b>hostname</b>, <b>portno</b>, <b>username</b>, and password for the target Virtuoso Server.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM3.png" style="wikiautogen"/>%BR%%BR%
1 Select the <b>Select Database From List</b> radio button and choose <b>isports</b> from the drop down list.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM4.png" style="wikiautogen"/>%BR%%BR%
1 Press the <b>Test Connection</b> dialog to verify the database is accessible.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM5.png" style="wikiautogen"/>%BR%%BR%
1 Set the <b>entity connect string</b> name to <b>isportsEntities</b> (note this name as it is required in the section on creating and ADO.Net Data Service) and click <b>Next</b>.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM6.png" style="wikiautogen"/>%BR%%BR%
1 In the <b>Choose your Database Objects</b> page, select the <b>Tables</b> check box to select all tables in the isports catalog for addition to the Entity Data Model. Set the <b>Model Namespace</b> to <b>isportsModel</b> and click <b>Finish</b>.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM7.png" style="wikiautogen"/>%BR%%BR%
1 The <b>Model1.edmx</b> EDM will be created with the tables and relationships displayed in the Visual Studio IDE.
%BR%%BR%<img src="%ATTACHURLPATH%/VirtProgressEDM8.png" style="wikiautogen"/>%BR%%BR%
Creation for the Entity Data Model for the Progress isports database is now complete.
|
id
| - 43d95ba149727dc7b81e5687330e306c
|
link
| |
has container
| |
http://rdfs.org/si...ices#has_services
| |
atom:title
| |
atom:source
| |
atom:author
| |
atom:published
| |
atom:updated
| |
topic
| |
is made
of | |
is container of
of | |
is link
of | |
is http://rdfs.org/si...vices#services_of
of | |
is links to
of | |
is creator of
of | |
is atom:entry
of | |
is atom:contains
of | |