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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
System.Object | anonType |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
Dictionary<System.String,System.Object> | dict |
ExecNonQuery(IDbCommand)
View Source
Declaration
public static int ExecNonQuery(this IDbCommand dbCmd)
Returns
System.Int32
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
ExecNonQuery(IDbCommand, String, Action<IDbCommand>)
View Source
Declaration
public static int ExecNonQuery(this IDbCommand dbCmd, string sql, Action<IDbCommand> dbCmdFilter)
Returns
System.Int32
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
Type | refType |
System.String | sql |
PopulateWith(IDbDataParameter, IDbDataParameter)
View Source
Declaration
public static IDbDataParameter PopulateWith(this IDbDataParameter to, IDbDataParameter from)
Returns
IDbDataParameter
Parameters
Type | Name |
---|---|
IDbDataParameter | to |
IDbDataParameter | from |
ConvertTo<T>(IDbCommand, String)
View Source
Declaration
public static T ConvertTo<T>(this IDbCommand dbCmd, string sql = null)
Returns
<T>
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
Type Parameters
T
Scalar(IDbCommand, ISqlExpression)
View Source
Declaration
public static object Scalar(this IDbCommand dbCmd, ISqlExpression sqlExpression)
Returns
System.Object
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
ServiceStack.OrmLite.ISqlExpression | sqlExpression |
Scalar(IDbCommand, String)
View Source
Declaration
public static object Scalar(this IDbCommand dbCmd, string sql = null)
Returns
System.Object
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
ExecLongScalar(IDbCommand, String)
View Source
Declaration
public static long ExecLongScalar(this IDbCommand dbCmd, string sql = null)
Returns
System.Int64
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |