VOS.VirtIngresEntityFrameworkUsage(Last) -- DAVWikiAdmin? , 2017-06-29 07:37:55 Edit WebDAV System Administrator 2017-06-29 07:37:55
WARNING! This URL (in the Main cluster) is no longer the authoritative source for this page; it has been moved to the VOS or ODS cluster as appropriate instead. See Tim Haynes in case of confusion.
Using Microsoft Entity Frameworks to Access Ingres Schema Objects with Virtuoso
This document details the steps required to provide Microsoft Entity Framework access to Ingres Schema Objects using the
The following must be in place to complete this exercise.
Microsoft Visual Studio 2008 SP1 (or later)
Microsoft Visual Studio 2008 Service Pack 1 (or later) is required, as previous versions do not include the necessary Entity Framework support.
Virtuoso ADO.NET Entity Framework Provider, v5.10 or later
The ADO.NET Entity Framework Provider must be installed on the Visual Studio development and deployment host(s). Version 5.10.x or later is required, as previous versions do not include the necessary Entity Frameworks support.
Virtuoso Universal Server, v5.10 or later
Virtuoso Universal Server Release 5.10 or later is required, as previous versions do not include the necessary Entity Frameworks support. This may be on any host which is TCP/IP accessible from the Visual Studio development and deployment host(s).
ODBC Driver for Ingres
The Virtuoso Server uses an ODBC Driver for Ingres to link in the Ingres Schema Objects. The
OpenLink Single-Tier ODBC Driver for Ingres will be used in this document, and a functional ODBC Data Source Name (DSN) of "
ingiima" will be assumed to exist on the machine hosting the Virtuoso Server. Any ODBC compliant driver for Ingres should work.
An Ingres DBMS hosting the required Schema Objects needs to be available. This may be on any host which is TCP/IP accessible from the Virtuoso Server host. In this document, the Ingres Tutorial database will be used to demonstrate the process.
Ensure Ingres Primary Keys (PKs) are not nullable
The Visual Studio 2008 Entity Data Model (EDM) requires that all primary keys are NOT Nullable, and will fail to generate an EDM if any are. Therefore, ensure any tables to be used are defined as not nullable in the Ingres database schema before attempting to generate an EDM. In the case of the Ingres Tutorial database all primary keys are non nullable. Thus, this should not be an issue in this case.
Install and configure the OpenLink ODBC Driver for Ingres
Install and configure
OpenLink Virtuoso Universal Server
Link Ingres tables and other schema objects into OpenLink Virtuoso
Create a Visual Studio-hosted Entity Data Model (EDM)
If entity-linking associations (i.e., Foreign Keys) are not automatically created (as they are not here with Ingres), the associations must be created manually.
Use the EDM to create an Entity Frameworks-based ADO.NET Data Service
Use the EDM to create an Entity Frameworks-based Windows DataGrid Form Application
CategoryDocumentation CategoryVirtuoso CategoryEntityFrameworks CategoryDotNET CategoryIngres