C# 클래스 WhippedCream.DataServiceDataLayer.WhippedCreamUpdatableContext

WCF Data Services has a provider that uses reflection in order to find the Entity Sets and Operations your repository exposes. In order for that provider to manage entity relationships, the data service the provider is reflecting over needs to inherit from IUpdatable. If it does not, then entity relationships are not managed. I actually don't know exactly what happens if the service dosen't inherit from IUpdatable but everything works when I do.
상속: IUpdatable
파일 보기 프로젝트 열기: KCL5South/WhippedCream 1 사용 예제들

공개 메소드들

메소드 설명
GetType ( string fullTypeName ) : System.Type

A Utility method used to retrieve a System.Type from a type name.

GetType ( string containerName, string fullTypeName ) : System.Type

A Utility method used to retrieve a System.Type from a type name.

IUpdatable ( ) : void
IUpdatable ( object targetResource ) : void
IUpdatable ( object targetResource, string propertyName, object resourceToBeAdded ) : void
SaveEntity ( ODataOperation operation, object entity ) : void

This method is called when pending changes on an entity need to be persisted to the backing store.

WhippedCreamUpdatableContext ( IUnityContainer container ) : System.Collections

Constructor.

비공개 메소드들

메소드 설명
IUpdatable ( System query, string fullTypeName ) : object
IUpdatable ( object resource ) : object
IUpdatable ( object targetResource, string propertyName ) : object
IUpdatable ( string containerName, string fullTypeName ) : object

메소드 상세

GetType() 공개 메소드

A Utility method used to retrieve a System.Type from a type name.
public GetType ( string fullTypeName ) : System.Type
fullTypeName string The full type name.
리턴 System.Type

GetType() 공개 추상적인 메소드

A Utility method used to retrieve a System.Type from a type name.
public abstract GetType ( string containerName, string fullTypeName ) : System.Type
containerName string The name of the entity set that is serving the type.
fullTypeName string The full type name.
리턴 System.Type

IUpdatable() 공개 메소드

public IUpdatable ( ) : void
리턴 void

IUpdatable() 공개 메소드

public IUpdatable ( object targetResource ) : void
targetResource object
리턴 void

IUpdatable() 공개 메소드

public IUpdatable ( object targetResource, string propertyName, object resourceToBeAdded ) : void
targetResource object
propertyName string
resourceToBeAdded object
리턴 void

SaveEntity() 공개 추상적인 메소드

This method is called when pending changes on an entity need to be persisted to the backing store.
public abstract SaveEntity ( ODataOperation operation, object entity ) : void
operation ODataOperation The type of operation the save is envoking.
entity object The entity to perform the save on.
리턴 void

WhippedCreamUpdatableContext() 공개 메소드

Constructor.
public WhippedCreamUpdatableContext ( IUnityContainer container ) : System.Collections
container IUnityContainer The IOC Container used for dependency injection.
리턴 System.Collections