EntityConnection.DataSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the name or network address of the data source to connect to.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override string DataSource { get; }
member this.DataSource : string
Public Overrides ReadOnly Property DataSource As String
Property Value
The name of the data source. The default value is an empty string.
- Attributes
Exceptions
The underlying data provider is not known.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework