C# Class 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.
Inheritance: IUpdatable
Afficher le fichier Open project: KCL5South/WhippedCream Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
IUpdatable ( System query, string fullTypeName ) : object
IUpdatable ( object resource ) : object
IUpdatable ( object targetResource, string propertyName ) : object
IUpdatable ( string containerName, string fullTypeName ) : object

Method Details

GetType() public méthode

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.
Résultat System.Type

GetType() public abstract méthode

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.
Résultat System.Type

IUpdatable() public méthode

public IUpdatable ( ) : void
Résultat void

IUpdatable() public méthode

public IUpdatable ( object targetResource ) : void
targetResource object
Résultat void

IUpdatable() public méthode

public IUpdatable ( object targetResource, string propertyName, object resourceToBeAdded ) : void
targetResource object
propertyName string
resourceToBeAdded object
Résultat void

SaveEntity() public abstract méthode

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.
Résultat void

WhippedCreamUpdatableContext() public méthode

Constructor.
public WhippedCreamUpdatableContext ( IUnityContainer container ) : System.Collections
container IUnityContainer The IOC Container used for dependency injection.
Résultat System.Collections