Not logged in : Login

About: VirtEntityFrameworkOJDBCDatService     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : atom:Entry, within Data Space : ods.openlinksw.com associated with source document(s)

AttributesValues
type
Date Created
Date Modified
label
  • VirtEntityFrameworkOJDBCDatService
maker
Title
  • VirtEntityFrameworkOJDBCDatService
isDescribedUsing
has creator
attachment
content
  • %VOSWARNING% %META:TOPICPARENT{name="VirtOJDBCEntityFrameworkUsage"}% ---+++Creating an ADO.Net Data Service An ADO.Net Data Service for the JDBC tables can be created using the Entity Data Model created in the [[VirtOJDBCEDM][Creating EDM in Visual Studio 2008]] section. 1 Open the VirtuosoDataService project created in the [[VirtOJDBCEDM][Creating EDM in Visual Studio 2008]] section.%BR%%BR% 1 Right click on the VirtuosoDataService project name in the Solution Explorer pane. Then, select the Add -> New Item menu options. %BR%%BR%%BR%%BR% 1 The Add New Item dialog will appear. Choose the ADO.NET Data Service template. Give it the name Virtuoso.svc and click Add to create the ADO.Net Data Service. %BR%%BR%%BR%%BR% 1 In the newly created Virtuoso.svc.cs Data Service file, add the data source class name of VirtuosoEntities (note this is the name set in the Creating EDM in Visual Studio 2008 section) as the DataService name. Enable access to the Data Service by adding the entry config.SetEntitySetAccessRule("*", EntitySetRights.All); to the InitializeService method. // C# using System; using System.Web; using System.Collections.Generic; using System.ServiceModel.Web; using System.Linq; using System.Data.Services; namespace SimpleDataService { public class Northwind : DataService { public static void InitializeService(IDataServiceConfiguration config) { config.SetEntitySetAccessRule("*", EntitySetRights.All); } } } %BR%%BR%%BR%%BR% 1 To test the Data Service, simply hit Ctrl+F5 within Visual Studio. This will start the development web server, run the Data Services server inside and load a Web browser page displaying the list of available tables/entities for the Northwind Demo database catalog. %BR%%BR%%BR%%BR% 1 To access a specific entity instance like the Customers table ALFKI record, use this convention: http://host/vdir/Virtuoso.svc/Customers('ALFKI') . %BR%%BR%%BR%%BR% ---+++NOTES 1 Important - To view Atom (the default format returned by an ADO.NET Data Service) in Internet Explorer, you must first ensure that Feed Reading View is turned off. This can be done on the Content tab of Tools in Internet Options.%BR%%BR% 1 If a Data Services entity instance URI page fails to load, you can turn Verbose errors on by adding config.UseVerboseErrors = true; in the virtuoso.svc.cs InitializeService method to obtain more detailed information from the server as to why the page failed to load: { public static void InitializeService(IDataServiceConfiguration config) config.UseVerboseErrors = true; config.SetEntitySetAccessRule("*", EntitySetRights.All); }
id
  • 60f971e7f37e5bb92977c67ca6577bb5
link
has container
http://rdfs.org/si...ices#has_services
atom:title
  • VirtEntityFrameworkOJDBCDatService
links to
atom:source
atom:author
atom:published
  • 2017-06-13T05:39:49Z
atom:updated
  • 2017-06-13T05:39:49Z
topic
is made of
is container of of
is link of
is http://rdfs.org/si...vices#services_of of
is creator of of
is atom:entry of
is atom:contains of
Faceted Search & Find service v1.17_git150 as of Jan 20 2025


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3332 as of Sep 11 2024, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 772 MB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2025 OpenLink Software