EntityConnection.DataSource Property

 

Gets the name or network address of the data source to connect to.

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

[SuppressMessageAttribute("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override string DataSource { get; }

Property Value

Type: System.String

The name of the data source. The default value is an empty string.