EntityContainer Constructor (String, DataSpace)

 

Creates an entity container with the specified name and data space.

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

[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public EntityContainer(
	string name,
	DataSpace dataSpace
)

Parameters

name
Type: System.String

The entity container name.

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

The entity container data space.

Exception Condition
ArgumentNullException

Thrown if the name argument is null.

ArgumentException

Thrown if the name argument is empty string.