C# Class Upgrader.Infrastructure.Dapper

Show file Open project: osjoberg/Upgrader Class Usage Examples

Public Methods

Method Description
Dapper ( IDbConnection connection ) : System.Collections.Generic
Execute ( string sql, object parameters = null ) : void
ExecuteScalar ( string sql, object parameters = null ) : object
ExecuteScalar ( string sql, object parameters = null ) : T
Query ( string sql, object parameters = null ) : IEnumerable
Query ( string sql, object parameters = null ) : IEnumerable

Method Details

Dapper() public method

public Dapper ( IDbConnection connection ) : System.Collections.Generic
connection IDbConnection
return System.Collections.Generic

Execute() public method

public Execute ( string sql, object parameters = null ) : void
sql string
parameters object
return void

ExecuteScalar() public method

public ExecuteScalar ( string sql, object parameters = null ) : object
sql string
parameters object
return object

ExecuteScalar() public method

public ExecuteScalar ( string sql, object parameters = null ) : T
sql string
parameters object
return T

Query() public method

public Query ( string sql, object parameters = null ) : IEnumerable
sql string
parameters object
return IEnumerable

Query() public method

public Query ( string sql, object parameters = null ) : IEnumerable
sql string
parameters object
return IEnumerable