ODataEntityDeserializer.CreateEntityResource Method (IEdmEntityTypeReference, ODataDeserializerContext)
Creates a new instance of the backing CLR object for the given entity type.
Namespace: System.Web.OData.Formatter.Deserialization
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual object CreateEntityResource(
IEdmEntityTypeReference entityType,
ODataDeserializerContext readContext
)
public:
virtual Object^ CreateEntityResource(
IEdmEntityTypeReference^ entityType,
ODataDeserializerContext^ readContext
)
abstract CreateEntityResource :
entityType:IEdmEntityTypeReference *
readContext:ODataDeserializerContext -> Object
override CreateEntityResource :
entityType:IEdmEntityTypeReference *
readContext:ODataDeserializerContext -> Object
Public Overridable Function CreateEntityResource (
entityType As IEdmEntityTypeReference,
readContext As ODataDeserializerContext
) As Object
Parameters
entityType
Type: Microsoft.OData.Edm.IEdmEntityTypeReferenceThe EDM type of the entity to create.
readContext
Type: System.Web.OData.Formatter.Deserialization.ODataDeserializerContextThe deserializer context.
Return Value
Type: System.Object
The created CLR object.
See Also
ODataEntityDeserializer Class
System.Web.OData.Formatter.Deserialization Namespace
Return to top