C# 클래스 Sage.SData.Client.Core.SDataService

Service class for processing SData Request
상속: ISDataService, ISDataRequestSettings
파일 보기 프로젝트 열기: Saleslogix/SDataCSharpClientLib 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ExecuteEntryRequest Sage.SData.Client.Atom.AtomEntry
ExecuteFeedRequest Sage.SData.Client.Atom.AtomFeed
Initialize void
ReadSchema Sage.SData.Client.Metadata.SDataSchemaObject

공개 메소드들

메소드 설명
CreateAsync ( Sage.SData.Client.Core.SDataBaseRequest request, ISyndicationResource resource ) : AsyncRequest

Asynchronous PUT to the server

CreateEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : Sage.SData.Client.Atom.AtomEntry

Adds a new syndication resource to the data source.

CreateFeed ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomFeed feed ) : Sage.SData.Client.Atom.AtomFeed

Adds a new syndication resource to the data source.

CreateFeed ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomFeed feed, string &eTag ) : Sage.SData.Client.Atom.AtomFeed

Adds a new syndication resource to the data source.

Delete ( string url ) : bool

Generic delete from server

DeleteEntry ( Sage.SData.Client.Core.SDataBaseRequest request ) : bool

Removes a resource from the syndication data source.

DeleteEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : bool

Removes a resource from the syndication data source.

Read ( string url ) : object

generic read from the specified url

ReadAsync ( string url, object userState ) : void
ReadEntry ( Sage.SData.Client.Core.SDataBaseRequest request ) : Sage.SData.Client.Atom.AtomEntry

Reads resource information from the data source based on the URL.

ReadEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : Sage.SData.Client.Atom.AtomEntry

Reads resource information from the data source based on the URL and the ETag of the specified entry.

ReadFeed ( Sage.SData.Client.Core.SDataBaseRequest request ) : Sage.SData.Client.Atom.AtomFeed

Reads resource information from the data source based on the URL.

ReadFeed ( Sage.SData.Client.Core.SDataBaseRequest request, string &eTag ) : Sage.SData.Client.Atom.AtomFeed

Reads resource information from the data source based on the URL and the specified ETag.

ReadSchema ( Sage.SData.Client.Core.SDataResourceSchemaRequest request ) : Sage.SData.Client.Metadata.SDataSchemaObject

Reads xsd from a $schema request

SDataService ( ) : System

Initialises a new instance of the SDataService class.

SDataService ( string url ) : System

Initialises a new instance of the SDataService class, initialized with a target url.

SDataService ( string url, string userName, string password ) : System

Initialises a new instance of the SDataService class, initialized with a target url, user name and password.

UpdateEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : Sage.SData.Client.Atom.AtomEntry

Updates information about a syndication resource in the data source.

보호된 메소드들

메소드 설명
ExecuteRequest ( string url, RequestOperation operation ) : ISDataResponse

비공개 메소드들

메소드 설명
ExecuteEntryRequest ( string url, RequestOperation operation ) : Sage.SData.Client.Atom.AtomEntry
ExecuteFeedRequest ( string url, RequestOperation operation, string &eTag ) : Sage.SData.Client.Atom.AtomFeed
Initialize ( ) : void
ReadSchema ( ISDataResponse response ) : Sage.SData.Client.Metadata.SDataSchemaObject

메소드 상세

CreateAsync() 공개 메소드

Asynchronous PUT to the server
public CreateAsync ( Sage.SData.Client.Core.SDataBaseRequest request, ISyndicationResource resource ) : AsyncRequest
request Sage.SData.Client.Core.SDataBaseRequest The request that identifies the resource within the syndication data source.
resource ISyndicationResource The resource that should be created asynchronously.
리턴 AsyncRequest

CreateEntry() 공개 메소드

Adds a new syndication resource to the data source.
public CreateEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : Sage.SData.Client.Atom.AtomEntry
request Sage.SData.Client.Core.SDataBaseRequest The request that identifies the resource within the syndication data source.
entry Sage.SData.Client.Atom.AtomEntry The entry that should be created.
리턴 Sage.SData.Client.Atom.AtomEntry

CreateFeed() 공개 메소드

Adds a new syndication resource to the data source.
public CreateFeed ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomFeed feed ) : Sage.SData.Client.Atom.AtomFeed
request Sage.SData.Client.Core.SDataBaseRequest The request that identifies the resource within the syndication data source.
feed Sage.SData.Client.Atom.AtomFeed
리턴 Sage.SData.Client.Atom.AtomFeed

CreateFeed() 공개 메소드

Adds a new syndication resource to the data source.
public CreateFeed ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomFeed feed, string &eTag ) : Sage.SData.Client.Atom.AtomFeed
request Sage.SData.Client.Core.SDataBaseRequest
feed Sage.SData.Client.Atom.AtomFeed
eTag string
리턴 Sage.SData.Client.Atom.AtomFeed

Delete() 공개 메소드

Generic delete from server
public Delete ( string url ) : bool
url string the url for the operation
리턴 bool

DeleteEntry() 공개 메소드

Removes a resource from the syndication data source.
public DeleteEntry ( Sage.SData.Client.Core.SDataBaseRequest request ) : bool
request Sage.SData.Client.Core.SDataBaseRequest
리턴 bool

DeleteEntry() 공개 메소드

Removes a resource from the syndication data source.
public DeleteEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : bool
request Sage.SData.Client.Core.SDataBaseRequest The request from the syndication data source for the resource to be removed.
entry Sage.SData.Client.Atom.AtomEntry the resource that is being deleted
리턴 bool

ExecuteRequest() 보호된 메소드

protected ExecuteRequest ( string url, RequestOperation operation ) : ISDataResponse
url string
operation Sage.SData.Client.Framework.RequestOperation
리턴 ISDataResponse

Read() 공개 메소드

generic read from the specified url
public Read ( string url ) : object
url string url to read from
리턴 object

ReadAsync() 공개 메소드

public ReadAsync ( string url, object userState ) : void
url string
userState object
리턴 void

ReadEntry() 공개 메소드

Reads resource information from the data source based on the URL.
public ReadEntry ( Sage.SData.Client.Core.SDataBaseRequest request ) : Sage.SData.Client.Atom.AtomEntry
request Sage.SData.Client.Core.SDataBaseRequest Request for the syndication resource to get information for.
리턴 Sage.SData.Client.Atom.AtomEntry

ReadEntry() 공개 메소드

Reads resource information from the data source based on the URL and the ETag of the specified entry.
public ReadEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : Sage.SData.Client.Atom.AtomEntry
request Sage.SData.Client.Core.SDataBaseRequest
entry Sage.SData.Client.Atom.AtomEntry
리턴 Sage.SData.Client.Atom.AtomEntry

ReadFeed() 공개 메소드

Reads resource information from the data source based on the URL.
public ReadFeed ( Sage.SData.Client.Core.SDataBaseRequest request ) : Sage.SData.Client.Atom.AtomFeed
request Sage.SData.Client.Core.SDataBaseRequest request for the syndication resource to get information for.
리턴 Sage.SData.Client.Atom.AtomFeed

ReadFeed() 공개 메소드

Reads resource information from the data source based on the URL and the specified ETag.
public ReadFeed ( Sage.SData.Client.Core.SDataBaseRequest request, string &eTag ) : Sage.SData.Client.Atom.AtomFeed
request Sage.SData.Client.Core.SDataBaseRequest
eTag string
리턴 Sage.SData.Client.Atom.AtomFeed

ReadSchema() 공개 메소드

Reads xsd from a $schema request
public ReadSchema ( Sage.SData.Client.Core.SDataResourceSchemaRequest request ) : Sage.SData.Client.Metadata.SDataSchemaObject
request Sage.SData.Client.Core.SDataResourceSchemaRequest url for the syndication resource to get information for.
리턴 Sage.SData.Client.Metadata.SDataSchemaObject

SDataService() 공개 메소드

Initialises a new instance of the SDataService class.
public SDataService ( ) : System
리턴 System

SDataService() 공개 메소드

Initialises a new instance of the SDataService class, initialized with a target url.
public SDataService ( string url ) : System
url string
리턴 System

SDataService() 공개 메소드

Initialises a new instance of the SDataService class, initialized with a target url, user name and password.
public SDataService ( string url, string userName, string password ) : System
url string
userName string user name used for credentials
password string password for user
리턴 System

UpdateEntry() 공개 메소드

Updates information about a syndication resource in the data source.
public UpdateEntry ( Sage.SData.Client.Core.SDataBaseRequest request, Sage.SData.Client.Atom.AtomEntry entry ) : Sage.SData.Client.Atom.AtomEntry
request Sage.SData.Client.Core.SDataBaseRequest The url from the syndication data source for the resource to be updated.
entry Sage.SData.Client.Atom.AtomEntry /// An object that implements the interface that represents the updated information for the resource. ///
리턴 Sage.SData.Client.Atom.AtomEntry