EdmStructuredType.AddStructuralProperty 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
AddStructuralProperty(String, EdmPrimitiveTypeKind) |
Creates and adds a nullable structural property to this type. |
AddStructuralProperty(String, IEdmTypeReference) |
Creates and adds a structural property to this type. |
AddStructuralProperty(String, EdmPrimitiveTypeKind, Boolean) |
Creates and adds a nullable structural property to this type. |
AddStructuralProperty(String, IEdmTypeReference, String) |
Creates and adds a structural property to this type. |
AddStructuralProperty(String, EdmPrimitiveTypeKind)
Creates and adds a nullable structural property to this type.
public Microsoft.OData.Edm.EdmStructuralProperty AddStructuralProperty (string name, Microsoft.OData.Edm.EdmPrimitiveTypeKind type);
member this.AddStructuralProperty : string * Microsoft.OData.Edm.EdmPrimitiveTypeKind -> Microsoft.OData.Edm.EdmStructuralProperty
Public Function AddStructuralProperty (name As String, type As EdmPrimitiveTypeKind) As EdmStructuralProperty
Parameters
- name
- String
Name of the property.
- type
- EdmPrimitiveTypeKind
Type of the property.
Returns
Created structural property.
Applies to
AddStructuralProperty(String, IEdmTypeReference)
Creates and adds a structural property to this type.
public Microsoft.OData.Edm.EdmStructuralProperty AddStructuralProperty (string name, Microsoft.OData.Edm.IEdmTypeReference type);
member this.AddStructuralProperty : string * Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.EdmStructuralProperty
Public Function AddStructuralProperty (name As String, type As IEdmTypeReference) As EdmStructuralProperty
Parameters
- name
- String
Name of the property.
- type
- IEdmTypeReference
Type of the property.
Returns
Created structural property.
Applies to
AddStructuralProperty(String, EdmPrimitiveTypeKind, Boolean)
Creates and adds a nullable structural property to this type.
public Microsoft.OData.Edm.EdmStructuralProperty AddStructuralProperty (string name, Microsoft.OData.Edm.EdmPrimitiveTypeKind type, bool isNullable);
member this.AddStructuralProperty : string * Microsoft.OData.Edm.EdmPrimitiveTypeKind * bool -> Microsoft.OData.Edm.EdmStructuralProperty
Public Function AddStructuralProperty (name As String, type As EdmPrimitiveTypeKind, isNullable As Boolean) As EdmStructuralProperty
Parameters
- name
- String
Name of the property.
- type
- EdmPrimitiveTypeKind
Type of the property.
- isNullable
- Boolean
Flag specifying if the property is nullable.
Returns
Created structural property.
Applies to
AddStructuralProperty(String, IEdmTypeReference, String)
Creates and adds a structural property to this type.
public Microsoft.OData.Edm.EdmStructuralProperty AddStructuralProperty (string name, Microsoft.OData.Edm.IEdmTypeReference type, string defaultValue);
member this.AddStructuralProperty : string * Microsoft.OData.Edm.IEdmTypeReference * string -> Microsoft.OData.Edm.EdmStructuralProperty
Public Function AddStructuralProperty (name As String, type As IEdmTypeReference, defaultValue As String) As EdmStructuralProperty
Parameters
- name
- String
Name of the property.
- type
- IEdmTypeReference
Type of the property.
- defaultValue
- String
The default value of this property.
Returns
Created structural property.