C# Class ApprovalUtilities.Persistence.Database.SqlLoaderUtils

Exibir arquivo Open project: approvals/ApprovalTests.Net Class Usage Examples

Public Methods

Method Description
ConvertRowToString ( DbDataReader row, StringBuilder headers ) : string
ExecuteQueryToDisplayString ( string query, DbConnection conn ) : string
ExecuteQueryToDisplayString ( string query, string connectionString, Func commandCreator ) : string

Method Details

ConvertRowToString() public static method

public static ConvertRowToString ( DbDataReader row, StringBuilder headers ) : string
row DbDataReader
headers StringBuilder
return string

ExecuteQueryToDisplayString() public static method

public static ExecuteQueryToDisplayString ( string query, DbConnection conn ) : string
query string
conn DbConnection
return string

ExecuteQueryToDisplayString() public static method

public static ExecuteQueryToDisplayString ( string query, string connectionString, Func commandCreator ) : string
query string
connectionString string
commandCreator Func
return string