EntityConnection.DataSource Property

Definition

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

public override string DataSource { get; }

Property Value

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

Exceptions

The underlying data provider is not known.

Remarks

For the specific keyword value, such as DataSource, that maps to the DataSource property, see the documentation for the underlying data provider. For SQL Server equivalent keywords, see the documentation for the SqlConnection.ConnectionString property.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1