Skip to main content

OrmLiteReadCommandExtensions

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

Fields

UseDbConnectionExtensions

View Source
Declaration
public const string UseDbConnectionExtensions = null

Methods

SetFilters<T>(IDbCommand, Object)

View Source
Declaration
public static IDbCommand SetFilters<T>(this IDbCommand dbCmd, object anonType)
Returns

IDbCommand

Parameters
TypeName
IDbCommanddbCmd
System.ObjectanonType
Type Parameters
  • T

ClearFilters(IDbCommand)

View Source
Declaration
public static void ClearFilters(this IDbCommand dbCmd)
Parameters
TypeName
IDbCommanddbCmd

SqlColumn<T>(IDbCommand, String, Object)

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

List<<T>>

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
System.ObjectanonType
Type Parameters
  • T

Lookup<K, V>(IDbCommand, String, Object)

View Source
Declaration
public static Dictionary<K, List<V>> Lookup<K, V>(this IDbCommand dbCmd, string sql, object anonType = null)
Returns

Dictionary<<K>,List<<V>>>

Parameters
TypeName
IDbCommanddbCmd
System.Stringsql
System.ObjectanonType
Type Parameters
  • K
  • V

LongScalar(IDbCommand)

View Source
Declaration
public static long LongScalar(this IDbCommand dbCmd)
Returns

System.Int64

Parameters
TypeName
IDbCommanddbCmd

LoadReferences<T>(IDbCommand, T, IEnumerable<String>)

View Source
Declaration
public static void LoadReferences<T>(this IDbCommand dbCmd, T instance, IEnumerable<string> include = null)
Parameters
TypeName
IDbCommanddbCmd
<T>instance
IEnumerable<System.String>include
Type Parameters
  • T

GetRefFieldDef(ModelDefinition, ModelDefinition, Type)

View Source
Declaration
public static FieldDefinition GetRefFieldDef(this ModelDefinition modelDef, ModelDefinition refModelDef, Type refType)
Returns

ServiceStack.OrmLite.FieldDefinition

Parameters
TypeName
ServiceStack.OrmLite.ModelDefinitionmodelDef
ServiceStack.OrmLite.ModelDefinitionrefModelDef
TyperefType

GetRefFieldDefIfExists(ModelDefinition, ModelDefinition)

View Source
Declaration
public static FieldDefinition GetRefFieldDefIfExists(this ModelDefinition modelDef, ModelDefinition refModelDef)
Returns

ServiceStack.OrmLite.FieldDefinition

Parameters
TypeName
ServiceStack.OrmLite.ModelDefinitionmodelDef
ServiceStack.OrmLite.ModelDefinitionrefModelDef

GetSelfRefFieldDefIfExists(ModelDefinition, ModelDefinition, FieldDefinition)

View Source
Declaration
public static FieldDefinition GetSelfRefFieldDefIfExists(this ModelDefinition modelDef, ModelDefinition refModelDef, FieldDefinition fieldDef)
Returns

ServiceStack.OrmLite.FieldDefinition

Parameters
TypeName
ServiceStack.OrmLite.ModelDefinitionmodelDef
ServiceStack.OrmLite.ModelDefinitionrefModelDef
ServiceStack.OrmLite.FieldDefinitionfieldDef

AddParam(IDbCommand, String, Object, ParameterDirection, Nullable<DbType>, Nullable<Byte>, Nullable<Byte>, Nullable<Int32>, Action<IDbDataParameter>)

View Source
Declaration
public static IDbDataParameter AddParam(this IDbCommand dbCmd, string name, object value = null, ParameterDirection direction = null, DbType? dbType = null, byte? precision = null, byte? scale = null, int? size = null, Action<IDbDataParameter> paramFilter = null)
Returns

IDbDataParameter

Parameters
TypeName
IDbCommanddbCmd
System.Stringname
System.Objectvalue
ParameterDirectiondirection
System.Nullable<DbType>dbType
System.Nullable<System.Byte>precision
System.Nullable<System.Byte>scale
System.Nullable<System.Int32>size
Action<IDbDataParameter>paramFilter

CreateParam(IDbCommand, String, Object, ParameterDirection, Nullable<DbType>, Nullable<Byte>, Nullable<Byte>, Nullable<Int32>)

View Source
Declaration
public static IDbDataParameter CreateParam(this IDbCommand dbCmd, string name, object value = null, ParameterDirection direction = null, DbType? dbType = null, byte? precision = null, byte? scale = null, int? size = null)
Returns

IDbDataParameter

Parameters
TypeName
IDbCommanddbCmd
System.Stringname
System.Objectvalue
ParameterDirectiondirection
System.Nullable<DbType>dbType
System.Nullable<System.Byte>precision
System.Nullable<System.Byte>scale
System.Nullable<System.Int32>size