Export (0) Print
Expand All

ODataUtils.LoadODataAnnotations Method (IEdmModel, IEdmEntityType, Int32)

WCF Data Services 5.0

Loads the supported, OData-specific serializable annotations into their in-memory representations.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

public static void LoadODataAnnotations(
	this IEdmModel model,
	IEdmEntityType entityType,
	int maxEntityPropertyMappingsPerType
)

Parameters

model
Type: Microsoft.Data.Edm.IEdmModel
The IEdmModel containing the annotations.
entityType
Type: Microsoft.Data.Edm.IEdmEntityType
The IEdmEntityType to process.
maxEntityPropertyMappingsPerType
Type: System.Int32
The maximum number of entity mapping attributes to be found for an entity type (on the type itself and all its base types).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).
Show:
© 2014 Microsoft