Dotnet-Project Framework documentation.

GenericDataHelper.connection Property

Get a closed connection.

public static System.Data.IDbConnection connection {get;}

Remarks

This property need a configuration in your application configuration file. See the example below (the second line initialize this property).

Example

<add key="DBAssembly" value="System.Data" />
<add key="DBConnectionClass" value="System.Data.SqlClient.SqlConnection" />
<add key="DBConnectionString" value="data source=127.0.0.0;user=theDBUser;password=thePassword;database=theDataBase" />
<add key="DBTransactionClass" value="System.Data.SqlClient.SqlTransaction" />
<add key="DBGenericAssembly" value="DotnetProject.Data" />
<add key="DBGenericClass" value="DotnetProject.Data.SQLDataHelper" />

See Also

GenericDataHelper Class | DotnetProject.Data Namespace