EntityTypes Method
Returns all the entity types in a model.
Namespace: Microsoft.Data.OData.Metadata
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function EntityTypes ( _
model As IEdmModel _
) As IEnumerable(Of IEdmEntityType)
'Usage
Dim model As IEdmModel
Dim returnValue As IEnumerable(Of IEdmEntityType)
returnValue = model.EntityTypes()
public static IEnumerable<IEdmEntityType> EntityTypes(
this IEdmModel model
)
[ExtensionAttribute]
public:
static IEnumerable<IEdmEntityType^>^ EntityTypes(
IEdmModel^ model
)
static member EntityTypes :
model:IEdmModel -> IEnumerable<IEdmEntityType>
public static function EntityTypes(
model : IEdmModel
) : IEnumerable<IEdmEntityType>
Parameters
- model
Type: Microsoft.Data.Edm..::..IEdmModel
The IEdmModel to get the entity types for (must not be null).
Return Value
Type: System.Collections.Generic..::..IEnumerable< (Of < ( <'IEdmEntityType> ) > ) >
An enumerable of all IEdmEntityType instances in the model.
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).