ExtensionMethods.AddEntityType 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
AddEntityType(EdmModel, String, String, IEdmEntityType, Boolean, Boolean, Boolean) |
Creates and adds an entity type to the model. |
AddEntityType(EdmModel, String, String, IEdmEntityType, Boolean, Boolean) |
Creates and adds an entity type to the model. |
AddEntityType(EdmModel, String, String) |
Creates and adds an entity type to the model. |
AddEntityType(EdmModel, String, String, IEdmEntityType) |
Creates and adds an entity type to the model. |
AddEntityType(EdmModel, String, String, IEdmEntityType, Boolean, Boolean, Boolean)
Creates and adds an entity type to the model.
public static Microsoft.OData.Edm.EdmEntityType AddEntityType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmEntityType baseType, bool isAbstract, bool isOpen, bool hasStream);
static member AddEntityType : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmEntityType * bool * bool * bool -> Microsoft.OData.Edm.EdmEntityType
<Extension()>
Public Function AddEntityType (model As EdmModel, namespaceName As String, name As String, baseType As IEdmEntityType, isAbstract As Boolean, isOpen As Boolean, hasStream As Boolean) As EdmEntityType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
Namespace the entity belongs to.
- name
- String
Name of the entity.
- baseType
- IEdmEntityType
The base type of this entity type.
- isAbstract
- Boolean
Denotes an entity that cannot be instantiated.
- isOpen
- Boolean
Denotes if the type is open.
- hasStream
- Boolean
Denotes if the type is a media type.
Returns
The entity type created.
Applies to
AddEntityType(EdmModel, String, String, IEdmEntityType, Boolean, Boolean)
Creates and adds an entity type to the model.
public static Microsoft.OData.Edm.EdmEntityType AddEntityType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmEntityType baseType, bool isAbstract, bool isOpen);
static member AddEntityType : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmEntityType * bool * bool -> Microsoft.OData.Edm.EdmEntityType
<Extension()>
Public Function AddEntityType (model As EdmModel, namespaceName As String, name As String, baseType As IEdmEntityType, isAbstract As Boolean, isOpen As Boolean) As EdmEntityType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
Namespace the entity belongs to.
- name
- String
Name of the entity.
- baseType
- IEdmEntityType
The base type of this entity type.
- isAbstract
- Boolean
Denotes an entity that cannot be instantiated.
- isOpen
- Boolean
Denotes if the type is open.
Returns
The entity type created.
Applies to
AddEntityType(EdmModel, String, String)
Creates and adds an entity type to the model.
public static Microsoft.OData.Edm.EdmEntityType AddEntityType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name);
static member AddEntityType : Microsoft.OData.Edm.EdmModel * string * string -> Microsoft.OData.Edm.EdmEntityType
<Extension()>
Public Function AddEntityType (model As EdmModel, namespaceName As String, name As String) As EdmEntityType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
Namespace the entity belongs to.
- name
- String
Name of the entity.
Returns
The entity type created.
Applies to
AddEntityType(EdmModel, String, String, IEdmEntityType)
Creates and adds an entity type to the model.
public static Microsoft.OData.Edm.EdmEntityType AddEntityType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmEntityType baseType);
static member AddEntityType : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmEntityType -> Microsoft.OData.Edm.EdmEntityType
<Extension()>
Public Function AddEntityType (model As EdmModel, namespaceName As String, name As String, baseType As IEdmEntityType) As EdmEntityType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
Namespace the entity belongs to.
- name
- String
Name of the entity.
- baseType
- IEdmEntityType
The base type of this entity type.
Returns
The entity type created.