Not logged in : Login

About: VirtEntityFrameworkSybaseDatService     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
  • VirtEntityFrameworkSybaseDatService
maker
Title
  • VirtEntityFrameworkSybaseDatService
isDescribedUsing
has creator
attachment
content
  • %VOSWARNING% %META:TOPICPARENT{name="VirtSybaseEntityFrameworkUsage"}% ---+++Creating an ADO.Net Data Service An ADO.Net Data Service for the Sybase tables can be created using the Entity Data Model created in the [[VirtSybaseEDM][Creating EDM in Visual Studio 2008]] section. 1 Open the <b><nop>VirtuosoDataService</b> project created in the [[VirtSybaseEDM][Creating EDM in Visual Studio 2008]] section.%BR%%BR% 1 Right click on the <b><nop>VirtuosoDataService</b> project name in the <b>Solution Explorer</b> pane. Then, select the <b>Add</b> -> <b>New Item</b> menu options. %BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_4.png" style="wikiautogen"/>%BR%%BR% 1 The <b>Add New Item</b> dialog will appear. Choose the <b>ADO.NET Data Service</b> template. Give it the name <b>Virtuoso.svc</b> and click <b>Add</b> to create the ADO.Net Data Service. %BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_15.png" style="wikiautogen"/>%BR%%BR% 1 In the newly created <b>Virtuoso.svc.cs</b> Data Service file, add the data source class name of <b><nop>VirtuosoEntities</b> (note this is the name set in the Creating EDM in Visual Studio 2008 section) as the <b><nop>DataService</b> name. Enable access to the Data Service by adding the entry <b>config.SetEntitySetAccessRule("*", EntitySetRights.All);</b> in the <b><nop>InitializeService</b> method. <verbatim> // 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<VirtuosoDemoEntities> { public static void InitializeService(IDataServiceConfiguration config) { config.SetEntitySetAccessRule("*", EntitySetRights.All); } } } </verbatim> %BR%%BR%<img src="%ATTACHURLPATH%/VirtAdoNetDataServices_16.png" style="wikiautogen"/>%BR%%BR% 1 To test the Data Service, simply hit <b>Ctrl+F5</b> within Visual Studio. This will start the development web server, run the Data Services server inside, and load a Web browser page that displays the list of tables/entities for the P2 database catalog. %BR%%BR%<img src="%ATTACHURLPATH%/EntityFrameworksSybaseDataService1.png" style="wikiautogen"/>%BR%%BR% 1 To access a specific entity instance like the publisher table publisher number 0736 record, use this convention: <b>http://host/vdir/Virtuoso.svc/publishers("0736")<b>. %BR%%BR%<img src="%ATTACHURLPATH%/EntityFrameworksSybaseDataService2.png" style="wikiautogen"/>%BR%%BR% ---+++NOTES 1 <b>Important</b> - To view <b>Atom</b> (the default format returned by an ADO.NET Data Service) in Internet Explorer, you must first ensure that <b>Feed Reading View</b> is turned <b>off</b>. This can be done on the <b>Content tab</b> of <b>Tools<b> in <b>Internet Options</b>.%BR%%BR% 1 If a Data Services entity instance URI page fails to load, you can turn <b>Verbose</b> errors on by adding <b>config.UseVerboseErrors = true;</b> in the <b>virtuoso.svc.cs <nop>InitializeService </b> method. This enables you to obtain more detailed information from the server as to why the page failed to load: <verbatim> public static void InitializeService(IDataServiceConfiguration config) { config.UseVerboseErrors = true; config.SetEntitySetAccessRule("*", EntitySetRights.All); } </verbatim>
id
  • f8461ca2684693d1aa25dd34568fc281
link
has container
http://rdfs.org/si...ices#has_services
atom:title
  • VirtEntityFrameworkSybaseDatService
links to
atom:source
atom:author
atom:published
  • 2017-06-13T05:44:28Z
atom:updated
  • 2017-06-13T05:44:28Z
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
Faceted Search & Find service v1.17_git132 as of May 12 2023


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 07.20.3238 as of May 23 2023, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 3 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software