ComplexType.Create Method (String, String, DataSpace, IEnumerable<EdmMember>, IEnumerable<MetadataProperty>)

 

Creates a new instance of the ComplexType type.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

public static ComplexType Create(
	string name,
	string namespaceName,
	DataSpace dataSpace,
	IEnumerable<EdmMember> members,
	IEnumerable<MetadataProperty> metadataProperties
)

Parameters

name
Type: System.String

The name of the complex type.

namespaceName
Type: System.String

The namespace of the complex type.

dataSpace
Type: System.Data.Entity.Core.Metadata.Edm.DataSpace

The dataspace to which the complex type belongs to.

members
Type: System.Collections.Generic.IEnumerable<EdmMember>

Members of the complex type.

metadataProperties
Type: System.Collections.Generic.IEnumerable<MetadataProperty>

Metadata properties to be associated with the instance.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.ComplexType

A new instance a the ComplexType type.

Exception Condition
ArgumentNullException

Thrown if either name, namespace or members argument is null.