Share via


EdmFunction.Create Method

Definition

The factory method for constructing the EdmFunction object.

public static System.Data.Entity.Core.Metadata.Edm.EdmFunction Create (string name, string namespaceName, System.Data.Entity.Core.Metadata.Edm.DataSpace dataSpace, System.Data.Entity.Core.Metadata.Edm.EdmFunctionPayload payload, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * string * System.Data.Entity.Core.Metadata.Edm.DataSpace * System.Data.Entity.Core.Metadata.Edm.EdmFunctionPayload * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EdmFunction

Parameters

name
String

The name of the function.

namespaceName
String

The namespace of the function.

dataSpace
DataSpace

The namespace the function belongs to.

payload
EdmFunctionPayload

Additional function attributes and properties.

metadataProperties
IEnumerable<MetadataProperty>

Metadata properties that will be added to the function. Can be null.

Returns

A new, read-only instance of the EdmFunction type.

Applies to