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(this IDbConnection cnn, string sql, dynamic param = null)

Parameters

cnn
System.Data.IDbConnection
sql
System.String
param
System.Object

Returns

{T}

Single(IDbConnection, String, Func, Object, String)

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

Parameters

cnn
System.Data.IDbConnection
sql
System.String
map
System.Func{{TFirst},{TSecond},{TReturn}}
param
System.Object
splitOn
System.String

Returns

{T}

Single(IDbConnection, String, Func, Object, String)

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

Parameters

cnn
System.Data.IDbConnection
sql
System.String
map
System.Func{{TFirst},{TSecond},{TThird},{TFourth},{TFifth},{TReturn}}
param
System.Object
splitOn
System.String

Returns

{T}

Single(IDbConnection, String, Func, Object, String)

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

Parameters

cnn
System.Data.IDbConnection
sql
System.String
map
System.Func{{TFirst},{TSecond},{TThird},{TFourth},{TReturn}}
param
System.Object
splitOn
System.String

Returns

{T}

Single(IDbConnection, String, Func, Object, String)

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

Parameters

cnn
System.Data.IDbConnection
sql
System.String
map
System.Func{{TFirst},{TSecond},{TThird},{TReturn}}
param
System.Object
splitOn
System.String

Returns

{T}