ExtensionMethods.AddComplexType 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
AddComplexType(EdmModel, String, String) |
Creates and adds a complex type to the model. |
AddComplexType(EdmModel, String, String, IEdmComplexType) |
Creates and adds a complex type to the model. |
AddComplexType(EdmModel, String, String, IEdmComplexType, Boolean) |
Creates and adds a complex type to the model. |
AddComplexType(EdmModel, String, String, IEdmComplexType, Boolean, Boolean) |
Creates and adds a complex type to the model. |
AddComplexType(EdmModel, String, String)
Creates and adds a complex type to the model.
public static Microsoft.OData.Edm.EdmComplexType AddComplexType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name);
static member AddComplexType : Microsoft.OData.Edm.EdmModel * string * string -> Microsoft.OData.Edm.EdmComplexType
<Extension()>
Public Function AddComplexType (model As EdmModel, namespaceName As String, name As String) As EdmComplexType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
The namespace this type belongs to.
- name
- String
The name of this type within its namespace.
Returns
The complex type created.
Applies to
AddComplexType(EdmModel, String, String, IEdmComplexType)
Creates and adds a complex type to the model.
public static Microsoft.OData.Edm.EdmComplexType AddComplexType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmComplexType baseType);
static member AddComplexType : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmComplexType -> Microsoft.OData.Edm.EdmComplexType
<Extension()>
Public Function AddComplexType (model As EdmModel, namespaceName As String, name As String, baseType As IEdmComplexType) As EdmComplexType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
The namespace this type belongs to.
- name
- String
The name of this type within its namespace.
- baseType
- IEdmComplexType
The base type of this complex type.
Returns
The complex type created.
Applies to
AddComplexType(EdmModel, String, String, IEdmComplexType, Boolean)
Creates and adds a complex type to the model.
public static Microsoft.OData.Edm.EdmComplexType AddComplexType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmComplexType baseType, bool isAbstract);
static member AddComplexType : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmComplexType * bool -> Microsoft.OData.Edm.EdmComplexType
<Extension()>
Public Function AddComplexType (model As EdmModel, namespaceName As String, name As String, baseType As IEdmComplexType, isAbstract As Boolean) As EdmComplexType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
The namespace this type belongs to.
- name
- String
The name of this type within its namespace.
- baseType
- IEdmComplexType
The base type of this complex type.
- isAbstract
- Boolean
Denotes whether this complex type is abstract.
Returns
The complex type created.
Applies to
AddComplexType(EdmModel, String, String, IEdmComplexType, Boolean, Boolean)
Creates and adds a complex type to the model.
public static Microsoft.OData.Edm.EdmComplexType AddComplexType (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmComplexType baseType, bool isAbstract, bool isOpen);
static member AddComplexType : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmComplexType * bool * bool -> Microsoft.OData.Edm.EdmComplexType
<Extension()>
Public Function AddComplexType (model As EdmModel, namespaceName As String, name As String, baseType As IEdmComplexType, isAbstract As Boolean, isOpen As Boolean) As EdmComplexType
Parameters
- model
- EdmModel
The EdmModel.
- namespaceName
- String
The namespace this type belongs to.
- name
- String
The name of this type within its namespace.
- baseType
- IEdmComplexType
The base type of this complex type.
- isAbstract
- Boolean
Denotes whether this complex type is abstract.
- isOpen
- Boolean
Denotes if the type is open.
Returns
The complex type created.