EntityDataSource.DefaultContainerName Property


Gets or sets the default container name.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Entity (in System.Web.Entity.dll)

public string DefaultContainerName { get; set; }

Property Value

Type: System.String

A String that is the default container name.

If the ContextTypeName property is not specified, both the DefaultContainerName and ConnectionString properties must be set for the control to create the ObjectContext.

.NET Framework
Available since 3.5
Return to top