EntityConnection::DataSource Property
.NET Framework (current version)
Gets the name or network address of the data source to connect to.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Property Value
Type: System::String^The name of the data source. The default value is an empty string.
| Exception | Condition |
|---|---|
| InvalidOperationException | The underlying data provider is not known. |
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 ConnectionString property.
.NET Framework
Available since 3.5
Available since 3.5
Show: