C# 클래스 DataServiceProvider.DSPResourceQueryProvider

Implementation of the IDataServiceQueryProvider.
상속: IDataServiceQueryProvider
파일 보기 프로젝트 열기: object/NorthwindOData

공개 메소드들

메소드 설명
DSPResourceQueryProvider ( ) : System

Constructor.

GetOpenPropertyValue ( object target, string propertyName ) : object

Gets a value of open property for the specified resource.

The method will only be called for properties which are not declared on the resource's resource type. Properties can have null values. The type of the property is determined from the returned object, only primitive types are supported for now.

GetOpenPropertyValues ( object target ) : object>>.IEnumerable

Gets a list of all open properties for the specified resource.

This method should only return open properties. Properties declared in metadata for this resource's resource type must not be returned by this method. Properties can have null values. The type of the property is determined from the returned object, only primitive types are supported for now.

GetPropertyValue ( object target, System.Data.Services.Providers.ResourceProperty resourceProperty ) : object

Gets a value of a declared property for a resource.

The returned value's type should match the type declared in the resource's resource type.

GetQueryRootForResourceSet ( System.Data.Services.Providers.ResourceSet resourceSet ) : System.Linq.IQueryable

Returns a query which can be used to retrive resource from the specified resource set.

The data service will use the LINQ to build the actual query required for the resource set. It's up to this provider to return an IQueryable which can handle such queries. If the resource set is not recognized by the provider it should return null.

GetResourceType ( object target ) : System.Data.Services.Providers.ResourceType

Returns a resource type for the specified resource.

The method should throw if the resource is not recognized. If it returns null the data service will throw instead.

InvokeServiceOperation ( System.Data.Services.Providers.ServiceOperation serviceOperation, object parameters ) : object

Invokes the specified service operation.

메소드 상세

DSPResourceQueryProvider() 공개 메소드

Constructor.
public DSPResourceQueryProvider ( ) : System
리턴 System

GetOpenPropertyValue() 공개 메소드

Gets a value of open property for the specified resource.
The method will only be called for properties which are not declared on the resource's resource type. Properties can have null values. The type of the property is determined from the returned object, only primitive types are supported for now.
public GetOpenPropertyValue ( object target, string propertyName ) : object
target object The target resource to get a value of property from.
propertyName string The name of the property to get.
리턴 object

GetOpenPropertyValues() 공개 메소드

Gets a list of all open properties for the specified resource.
This method should only return open properties. Properties declared in metadata for this resource's resource type must not be returned by this method. Properties can have null values. The type of the property is determined from the returned object, only primitive types are supported for now.
public GetOpenPropertyValues ( object target ) : object>>.IEnumerable
target object The target resource to get open properties from.
리턴 object>>.IEnumerable

GetPropertyValue() 공개 메소드

Gets a value of a declared property for a resource.
The returned value's type should match the type declared in the resource's resource type.
public GetPropertyValue ( object target, System.Data.Services.Providers.ResourceProperty resourceProperty ) : object
target object The target resource to get a value of the property from.
resourceProperty System.Data.Services.Providers.ResourceProperty The name of the property to get.
리턴 object

GetQueryRootForResourceSet() 공개 메소드

Returns a query which can be used to retrive resource from the specified resource set.
The data service will use the LINQ to build the actual query required for the resource set. It's up to this provider to return an IQueryable which can handle such queries. If the resource set is not recognized by the provider it should return null.
public GetQueryRootForResourceSet ( System.Data.Services.Providers.ResourceSet resourceSet ) : System.Linq.IQueryable
resourceSet System.Data.Services.Providers.ResourceSet The resource set to get the quqeyr for.
리턴 System.Linq.IQueryable

GetResourceType() 공개 메소드

Returns a resource type for the specified resource.
The method should throw if the resource is not recognized. If it returns null the data service will throw instead.
public GetResourceType ( object target ) : System.Data.Services.Providers.ResourceType
target object The target resource for which to determine its type.
리턴 System.Data.Services.Providers.ResourceType

InvokeServiceOperation() 공개 메소드

Invokes the specified service operation.
public InvokeServiceOperation ( System.Data.Services.Providers.ServiceOperation serviceOperation, object parameters ) : object
serviceOperation System.Data.Services.Providers.ServiceOperation The service operation to invoke.
parameters object The parameters for the service operation. Their types will match the types of the declared parameters for the service operation.
리턴 object