Share via


EntityFrameworkDataServiceProvider Class

Entity Framework based provider.

Inheritance Hierarchy

System.Object
  System.Data.Services.Providers.EntityFrameworkDataServiceProvider

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Class EntityFrameworkDataServiceProvider _
    Implements IDataServiceMetadataProvider, IDataServiceQueryProvider, IDataServiceUpdateProvider2, IDataServiceUpdateProvider,  _
    IUpdatable, IDataServiceProviderBehavior, IDataServiceEntityFrameworkProvider, IServiceProvider, IDisposable
'Usage
Dim instance As EntityFrameworkDataServiceProvider
public class EntityFrameworkDataServiceProvider : IDataServiceMetadataProvider, 
    IDataServiceQueryProvider, IDataServiceUpdateProvider2, IDataServiceUpdateProvider, IUpdatable, IDataServiceProviderBehavior, 
    IDataServiceEntityFrameworkProvider, IServiceProvider, IDisposable
public ref class EntityFrameworkDataServiceProvider : IDataServiceMetadataProvider, 
    IDataServiceQueryProvider, IDataServiceUpdateProvider2, IDataServiceUpdateProvider, IUpdatable, IDataServiceProviderBehavior, 
    IDataServiceEntityFrameworkProvider, IServiceProvider, IDisposable
type EntityFrameworkDataServiceProvider =  
    class 
        interface IDataServiceMetadataProvider 
        interface IDataServiceQueryProvider 
        interface IDataServiceUpdateProvider2 
        interface IDataServiceUpdateProvider 
        interface IUpdatable 
        interface IDataServiceProviderBehavior 
        interface IDataServiceEntityFrameworkProvider 
        interface IServiceProvider 
        interface IDisposable 
    end
public class EntityFrameworkDataServiceProvider implements IDataServiceMetadataProvider, IDataServiceQueryProvider, IDataServiceUpdateProvider2, IDataServiceUpdateProvider, IUpdatable, IDataServiceProviderBehavior, IDataServiceEntityFrameworkProvider, IServiceProvider, IDisposable

The EntityFrameworkDataServiceProvider type exposes the following members.

Constructors

  Name Description
Public method EntityFrameworkDataServiceProvider Initializes a new System.Data.Services.Providers.EntityFrameworkDataServiceProvider instance.

Top

Properties

  Name Description
Public property ContainerName Name of the EDM container
Public property ContainerNamespace Namespace name for the EDM container.
Public property CurrentDataSource The data source from which data is provided.
Public property EdmSchemaVersion Gets the metadata schema version.
Public property IsNullPropagationRequired Gets a value indicating whether null propagation is required in expression trees.
Public property ProviderBehavior Instance of provider behavior that defines the assumptions service should make about the provider.
Public property ResourceSets Gets all available containers.
Public property ServiceOperations Returns all the service operations in this data source
Public property Types Returns all the types in this data source

Top

Methods

  Name Description
Public method AddReferenceToCollection Adds the given value to the collection
Public method ClearChanges Revert all the pending changes.
Public method CreateResource Creates the resource of the given type and belonging to the given container
Public method DeleteResource Delete the given resource
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected method Dispose(Boolean) Disposes the current object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FinalizeMetadataModel Called by the service to let the provider perform data model validation.
Public method GetDerivedTypes The method must return a collection of all the types derived from resourceType. The collection returned should NOT include the type passed in as a parameter. An implementer of the interface should return null if the type does not have any derived types (ie. null == no derived types).
Public method GetEntityContainerAnnotations Return the list of custom annotation for the entity container with the given name.
Public method GetETagProperties Given a resource container and resource type, gets the list of ResourceProperties that are part of the ETag.
Public method GetHashCode (Inherited from Object.)
Public method GetOpenPropertyValue Get the value of the open property.
Public method GetOpenPropertyValues Get the name and values of all the properties defined in the given instance of an open type.
Public method GetPropertyValue Get the value of the strongly typed property.
Public method GetQueryRootForResourceSet Returns the IQueryable that represents the resource set.
Public method GetResource Gets the resource of the given type that the query points to
Public method GetResourceAssociationSet Gets the ResourceAssociationSet instance when given the source association end.
Public method GetResourceType Gets the ResourceType for the specified target.
Public method GetService Gets the service object of the specified type.
Public method GetType (Inherited from Object.)
Public method GetValue Gets the value of the given property on the target object
Public method HasDerivedTypes Returns true if resourceType represents an Entity Type which has derived Entity Types, else false.
Public method InvokeServiceOperation Invoke the given service operation and returns the results.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnCreateResourceProperty
Public method RemoveReferenceFromCollection Removes the given value from the collection
Public method ResetResource Resets the value of the given resource to its default value
Public method ResolveResource Returns the actual instance of the resource represented by the given resource object
Public method SaveChanges Saves all the pending changes made till now
Public method ScheduleInvokable Queues up the invokable to be invoked during IUpdatable.SaveChanges().
Public method SetConcurrencyValues Passes the etag value for the given resource.
Public method SetReference Sets the value of the given reference property on the target object
Public method SetValue Sets the value of the given property on the target object
Public method ToString (Inherited from Object.)
Public method TryResolveResourceSet Given the specified name, tries to find a resource set.
Public method TryResolveResourceType Given the specified name, tries to find a type.
Public method TryResolveServiceOperation Given the specified name, tries to find a service operation.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Data.Services.Providers Namespace