Jaa


ExtensionMethods.AddTerm Method

Definition

Overloads

AddTerm(EdmModel, String, String, EdmPrimitiveTypeKind)

Creates and adds a new instance of the EdmTerm class from a primitive type kind.

AddTerm(EdmModel, String, String, IEdmTypeReference)

Creates and adds a new instance of the EdmTerm class from a type reference.

AddTerm(EdmModel, String, String, IEdmTypeReference, String, String)

Creates and adds a new instance of the EdmTerm class from a type reference.

AddTerm(EdmModel, String, String, EdmPrimitiveTypeKind)

Creates and adds a new instance of the EdmTerm class from a primitive type kind.

public static Microsoft.OData.Edm.Vocabularies.EdmTerm AddTerm (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.EdmPrimitiveTypeKind kind);
static member AddTerm : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.EdmPrimitiveTypeKind -> Microsoft.OData.Edm.Vocabularies.EdmTerm
<Extension()>
Public Function AddTerm (model As EdmModel, namespaceName As String, name As String, kind As EdmPrimitiveTypeKind) As EdmTerm

Parameters

model
EdmModel

The EdmModel.

namespaceName
String

The Namespace of the term.

name
String

The name of the newly created term

kind
EdmPrimitiveTypeKind

The primitive type kind of the term.

Returns

The created term.

Applies to

AddTerm(EdmModel, String, String, IEdmTypeReference)

Creates and adds a new instance of the EdmTerm class from a type reference.

public static Microsoft.OData.Edm.Vocabularies.EdmTerm AddTerm (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmTypeReference type);
static member AddTerm : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.Vocabularies.EdmTerm
<Extension()>
Public Function AddTerm (model As EdmModel, namespaceName As String, name As String, type As IEdmTypeReference) As EdmTerm

Parameters

model
EdmModel

The EdmModel.

namespaceName
String

The Namespace of the term.

name
String

The name of the newly created term

type
IEdmTypeReference

The type of the term.

Returns

The created term.

Applies to

AddTerm(EdmModel, String, String, IEdmTypeReference, String, String)

Creates and adds a new instance of the EdmTerm class from a type reference.

public static Microsoft.OData.Edm.Vocabularies.EdmTerm AddTerm (this Microsoft.OData.Edm.EdmModel model, string namespaceName, string name, Microsoft.OData.Edm.IEdmTypeReference type, string appliesTo, string defaultValue);
static member AddTerm : Microsoft.OData.Edm.EdmModel * string * string * Microsoft.OData.Edm.IEdmTypeReference * string * string -> Microsoft.OData.Edm.Vocabularies.EdmTerm
<Extension()>
Public Function AddTerm (model As EdmModel, namespaceName As String, name As String, type As IEdmTypeReference, appliesTo As String, defaultValue As String) As EdmTerm

Parameters

model
EdmModel

The EdmModel.

namespaceName
String

The Namespace of the term.

name
String

The name of the newly created term

type
IEdmTypeReference

The type of the term.

appliesTo
String

The AppliesTo of the term.

defaultValue
String

The DefaultValue of the term.

Returns

The created term.

Applies to