Eksportuj (0) Drukuj
Rozwiń wszystko
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.
0 z 6 osób oceniło jako pomocne - Oceń ten temat

DataServiceContext Class (Table Service Support)

Updated: June 30, 2010

The Microsoft® .NET Client Library for WCF Data Services provides the DataServiceContext class as part of the System.Data.Services.Client assembly. The DataServiceContext class represents the runtime context with a specified data service.

This topic details which members of the DataServiceContext class you may use to work with the Table service, which are unsupported, and which are supported with some differences. For complete documentation of the .NET Client Library, see .NET Client Library for WCF Data Services.

DataServiceContext Methods

The following table notes which methods of the DataServiceContext class are supported. All unsupported operations throw a NotSupportedException.

 

Method name Table service support Additional information

AddLink

Not supported.

Links are not supported.

AddObject

Supported as defined.

AttachLink

Not supported.

Links are not supported.

AttachTo

Supported as defined.

BeginExecute

Supported as defined.

BeginExecuteBatch

Supported, with some restrictions.

The Table service supports submitting a batch containing a single query only.

BeginLoadProperty

Not supported.

Retrieving properties is not supported. Only complete entities may be retrieved.

BeginSaveChanges

Supported as defined.

CreateQuery

Supported as defined.

DeleteLink

Not supported.

Links are not supported.

DeleteObject

Supported as defined.

Detach

Supported as defined.

DetachLink

Not supported.

Links are not supported.

EndExecute

Supported as defined.

EndExecuteBatch

Supported, with some restrictions.

The Table service supports submitting a batch containing a single query only.

EndLoadProperty

Not supported.

Retrieving properties is not supported. Only complete entities may be retrieved.

EndSaveChanges

Supported as defined.

Execute

Supported as defined.

ExecuteBatch

Supported, with some restrictions.

The Table service supports submitting a batch containing a single query only.

GetMetadataUri

Supported.

Currently returns the list of table names.

LoadProperty

Not supported.

Retrieving properties is not supported. Only complete entities may be retrieved.

SaveChanges

Supported as defined.

SetLink

Not supported.

Links are not supported.

TryGetEntity

Supported as defined.

TryGetUri

Supported as defined.

UpdateObject

Supported as defined.

DataServiceContext Properties

The following table notes which properties of the DataServiceContext class are supported.

 

Property name Table service support Additional information

BaseUri

Supported as defined.

Credentials

Not supported.

DataNamespace

Supported as defined.

Entities

Supported as defined.

IgnoreMissingProperties

Supported as defined.

Links

Not supported.

Links are not supported.

MergeOption

Supported as defined.

ResolveName

Supported as defined.

ResolveType

Supported as defined.

SaveChangesDefaultOptions

Supported as defined.

Timeout

Supported as defined.

The default server timeout defined by the 2009-07-17 version of the Table service is 30 seconds. The default server timeout defined by the 2009-04-14 version of the Table service is 60 seconds for a query operation, and 30 seconds for an insert, update, or delete operation. It's recommended that you set the client timeout to a value greater that the server timeout, so that you know whether the operation against the server has succeeded before the client timeout interval elapses.

TypeScheme

Supported as defined.

UsePostTunneling

Supported as defined.

DataServiceContext Events

The following table notes which events of the DataServiceContext class are supported.

 

Name Table service support

ReadingEntity

Supported as defined.

SendingRequest

Supported as defined.

WritingEntity

Supported as defined.

See Also

Czy oceniasz te materiały jako pomocne?
(Pozostało znaków: 1500)
Dziękujemy za opinię.
Pokaż:
© 2014 Microsoft. Wszelkie prawa zastrzeżone.