Skip to main content

OrmLiteResultsFilterExtensions

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public static class OrmLiteResultsFilterExtensions : object

Methods

ExecNonQuery(IDbCommand, String, Object)

View Source
Declaration
public static int ExecNonQuery(this IDbCommand dbCmd, string sql, object anonType = null)
Returns

System.Int32

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
System.ObjectanonType

ExecNonQuery(IDbCommand, String, Dictionary<String, Object>)

View Source
Declaration
public static int ExecNonQuery(this IDbCommand dbCmd, string sql, Dictionary<string, object> dict)
Returns

System.Int32

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
Dictionary<System.String,System.Object>dict

ExecNonQuery(IDbCommand)

View Source
Declaration
public static int ExecNonQuery(this IDbCommand dbCmd)
Returns

System.Int32

Parameters
TypeName
IDbCommanddbCmd

ExecNonQuery(IDbCommand, String, Action<IDbCommand>)

View Source
Declaration
public static int ExecNonQuery(this IDbCommand dbCmd, string sql, Action<IDbCommand> dbCmdFilter)
Returns

System.Int32

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
Action<IDbCommand>dbCmdFilter

ConvertToList<T>(IDbCommand, String)

View Source
Declaration
public static List<T> ConvertToList<T>(this IDbCommand dbCmd, string sql = null)
Returns

List<<T>>

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
Type Parameters
  • T

ConvertToList(IDbCommand, Type, String)

View Source
Declaration
public static IList ConvertToList(this IDbCommand dbCmd, Type refType, string sql = null)
Returns

IList

Parameters
TypeName
IDbCommanddbCmd
TyperefType
System.Stringsql

PopulateWith(IDbDataParameter, IDbDataParameter)

View Source
Declaration
public static IDbDataParameter PopulateWith(this IDbDataParameter to, IDbDataParameter from)
Returns

IDbDataParameter

Parameters
TypeName
IDbDataParameterto
IDbDataParameterfrom

ConvertTo<T>(IDbCommand, String)

View Source
Declaration
public static T ConvertTo<T>(this IDbCommand dbCmd, string sql = null)
Returns

<T>

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
Type Parameters
  • T

Scalar(IDbCommand, ISqlExpression)

View Source
Declaration
public static object Scalar(this IDbCommand dbCmd, ISqlExpression sqlExpression)
Returns

System.Object

Parameters
TypeName
IDbCommanddbCmd
ServiceStack.OrmLite.ISqlExpressionsqlExpression

Scalar(IDbCommand, String)

View Source
Declaration
public static object Scalar(this IDbCommand dbCmd, string sql = null)
Returns

System.Object

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql

ExecLongScalar(IDbCommand, String)

View Source
Declaration
public static long ExecLongScalar(this IDbCommand dbCmd, string sql = null)
Returns

System.Int64

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql