using System;
using System.Data;
using System.Data.Common;
namespace STMes.DataProvider
{
///
/// The IDataProvider is an interface that provides specific data provider information
/// for the class.
///
///
/// See the method to find an example.
///
/// AddDataManager Method
public interface IDataProvider
{
///
/// Creates a new instance of the .
///
///
/// See the method to find an example.
///
/// AddDataManager Method
/// The object.
IDbConnection CreateConnectionObject();
IDbConnection CreateConnectionObject(string connectionString );
///
/// Creates an instance of the .
///
///
/// See the method to find an example.
///
/// AddDataManager Method
/// The object.
DbDataAdapter CreateDataAdapterObject();
///
/// Populates the specified object's Parameters collection with
/// parameter information for the stored procedure specified in the .
///
///
/// See the method to find an example.
///
/// AddDataManager Method
/// The referencing the stored procedure
/// for which the parameter information is to be derived.
/// The derived parameters will be populated into the Parameters of this command.
void DeriveParameters(IDbCommand command);
///
/// Returns an actual type of the connection object used by this instance of the .
///
///
/// See the method to find an example.
///
/// AddDataManager Method
/// An instance of the class.
Type ConnectionType { get; }
///
/// Returns the data manager name.
///
///
/// See the method to find an example.
///
/// AddDataManager Method
/// The data manager name.
string Name { get; }
///
/// Create DB Privider Data Parameter
///
///
System.Data.IDbDataParameter CreateDataParameter();
///
/// Create DB Privider Data Command Builder
///
///
///
System.Object CreateCommandBuilder(DbDataAdapter da);
///
/// Test Connection Info
///
/// Test Connection Object
/// Test Result
bool Ping(ref IDbConnection db);
int GetSID(ref IDbConnection db);
}
}