EdmFunction.Create Method (String, String, DataSpace, EdmFunctionPayload, IEnumerable<MetadataProperty>)
The factory method for constructing the EdmFunction object.
Assembly: EntityFramework (in EntityFramework.dll)
public static EdmFunction Create( string name, string namespaceName, DataSpace dataSpace, EdmFunctionPayload payload, IEnumerable<MetadataProperty> metadataProperties )
Parameters
- name
-
Type:
System.String
The name of the function.
- namespaceName
-
Type:
System.String
The namespace of the function.
- dataSpace
-
Type:
System.Data.Entity.Core.Metadata.Edm.DataSpace
The namespace the function belongs to.
- payload
-
Type:
System.Data.Entity.Core.Metadata.Edm.EdmFunctionPayload
Additional function attributes and properties.
- metadataProperties
-
Type:
System.Collections.Generic.IEnumerable<MetadataProperty>
Metadata properties that will be added to the function. Can be null.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EdmFunctionA new, read-only instance of the EdmFunction type.