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 | |
---|---|---|
EntityFrameworkDataServiceProvider | Initializes a new System.Data.Services.Providers.EntityFrameworkDataServiceProvider instance. |
Top
Properties
Name | Description | |
---|---|---|
ContainerName | Name of the EDM container | |
ContainerNamespace | Namespace name for the EDM container. | |
CurrentDataSource | The data source from which data is provided. | |
EdmSchemaVersion | Gets the metadata schema version. | |
IsNullPropagationRequired | Gets a value indicating whether null propagation is required in expression trees. | |
ProviderBehavior | Instance of provider behavior that defines the assumptions service should make about the provider. | |
ResourceSets | Gets all available containers. | |
ServiceOperations | Returns all the service operations in this data source | |
Types | Returns all the types in this data source |
Top
Methods
Name | Description | |
---|---|---|
AddReferenceToCollection | Adds the given value to the collection | |
ClearChanges | Revert all the pending changes. | |
CreateResource | Creates the resource of the given type and belonging to the given container | |
DeleteResource | Delete the given resource | |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Dispose(Boolean) | Disposes the current object. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FinalizeMetadataModel | Called by the service to let the provider perform data model validation. | |
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). | |
GetEntityContainerAnnotations | Return the list of custom annotation for the entity container with the given name. | |
GetETagProperties | Given a resource container and resource type, gets the list of ResourceProperties that are part of the ETag. | |
GetHashCode | (Inherited from Object.) | |
GetOpenPropertyValue | Get the value of the open property. | |
GetOpenPropertyValues | Get the name and values of all the properties defined in the given instance of an open type. | |
GetPropertyValue | Get the value of the strongly typed property. | |
GetQueryRootForResourceSet | Returns the IQueryable that represents the resource set. | |
GetResource | Gets the resource of the given type that the query points to | |
GetResourceAssociationSet | Gets the ResourceAssociationSet instance when given the source association end. | |
GetResourceType | Gets the ResourceType for the specified target. | |
GetService | Gets the service object of the specified type. | |
GetType | (Inherited from Object.) | |
GetValue | Gets the value of the given property on the target object | |
HasDerivedTypes | Returns true if resourceType represents an Entity Type which has derived Entity Types, else false. | |
InvokeServiceOperation | Invoke the given service operation and returns the results. | |
MemberwiseClone | (Inherited from Object.) | |
OnCreateResourceProperty | ||
RemoveReferenceFromCollection | Removes the given value from the collection | |
ResetResource | Resets the value of the given resource to its default value | |
ResolveResource | Returns the actual instance of the resource represented by the given resource object | |
SaveChanges | Saves all the pending changes made till now | |
ScheduleInvokable | Queues up the invokable to be invoked during IUpdatable.SaveChanges(). | |
SetConcurrencyValues | Passes the etag value for the given resource. | |
SetReference | Sets the value of the given reference property on the target object | |
SetValue | Sets the value of the given property on the target object | |
ToString | (Inherited from Object.) | |
TryResolveResourceSet | Given the specified name, tries to find a resource set. | |
TryResolveResourceType | Given the specified name, tries to find a type. | |
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.