SqlHelper.Single Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

Overloads

Single(IDbConnection, string, object)
Single(IDbConnection, string, Func, object, string)
Single(IDbConnection, string, Func, object, string)
Single(IDbConnection, string, Func, object, string)
Single(IDbConnection, string, Func, object, string)

Single(IDbConnection, string, object)

public static T Single<T>(this IDbConnection cnn, string sql, dynamic param = null)

Parameters

cnn
System.Data.IDbConnection
sql
string
param
object

Returns

Single(IDbConnection, string, Func, object, string)

public static TReturn Single<TFirst, TSecond, TReturn>(this IDbConnection cnn, string sql, Func<TFirst, TSecond, TReturn> map, dynamic param = null, string splitOn = "Id")

Parameters

cnn
System.Data.IDbConnection
sql
string
map
System.Func<,,>
param
object
splitOn
string

Returns

Single(IDbConnection, string, Func, object, string)

public static TReturn Single<TFirst, TSecond, TThird, TFourth, TFifth, TReturn>(this IDbConnection cnn, string sql, Func<TFirst, TSecond, TThird, TFourth, TFifth, TReturn> map, dynamic param = null, string splitOn = "Id")

Parameters

cnn
System.Data.IDbConnection
sql
string
map
System.Func<,,,,,>
param
object
splitOn
string

Returns

Single(IDbConnection, string, Func, object, string)

public static TReturn Single<TFirst, TSecond, TThird, TFourth, TReturn>(this IDbConnection cnn, string sql, Func<TFirst, TSecond, TThird, TFourth, TReturn> map, dynamic param = null, string splitOn = "Id")

Parameters

cnn
System.Data.IDbConnection
sql
string
map
System.Func<,,,,>
param
object
splitOn
string

Returns

Single(IDbConnection, string, Func, object, string)

public static TReturn Single<TFirst, TSecond, TThird, TReturn>(this IDbConnection cnn, string sql, Func<TFirst, TSecond, TThird, TReturn> map, dynamic param = null, string splitOn = "Id")

Parameters

cnn
System.Data.IDbConnection
sql
string
map
System.Func<,,,>
param
object
splitOn
string

Returns