DataSource.Current Property

System.Data.Generic

DataSourceCurrent Property
Returns a new instance of the DataSource class using the connection string, specific in the app.config.

Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)
Syntax
public static DataSource Current { get; }
Public Shared ReadOnly Property Current As DataSource
	Get
public:
static property DataSource^ Current {
	DataSource^ get ();
}
static member Current : DataSource with get

Property Value

Type: DataSource

Return Value

Type: DataSource
Remarks
Add GlobalDataSource to the app.config connectionstring elements.
Examples
<ConnectionStrings><add name="GlobalDataSource" connectionString="Server=.\SQLExpress;Database=somedatabase;" /></ConnectionStrings>
See Also