IEntityModel.GetEntityType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetEntityType(String) |
Gets the entity type based on a name. |
GetEntityType(Type) |
Gets the entity type metadata from a contract type. |
GetEntityType(String)
Gets the entity type based on a name.
public Microsoft.VisualStudio.ProjectSystem.Query.IEntityType GetEntityType (string name);
abstract member GetEntityType : string -> Microsoft.VisualStudio.ProjectSystem.Query.IEntityType
Public Function GetEntityType (name As String) As IEntityType
Parameters
- name
- String
The type name.
Returns
The entity type metadata.
Applies to
GetEntityType(Type)
Gets the entity type metadata from a contract type.
public Microsoft.VisualStudio.ProjectSystem.Query.IEntityType GetEntityType (Type contractType);
abstract member GetEntityType : Type -> Microsoft.VisualStudio.ProjectSystem.Query.IEntityType
Public Function GetEntityType (contractType As Type) As IEntityType
Parameters
- contractType
- Type
The contract type generated from the model.
Returns
The entity type metadata.