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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.Object | anonType |
Type Parameters
T
ClearFilters(IDbCommand)
View Source
Declaration
public static void ClearFilters(this IDbCommand dbCmd)
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
System.Object | anonType |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | sql |
System.Object | anonType |
Type Parameters
K
V
LongScalar(IDbCommand)
View Source
Declaration
public static long LongScalar(this IDbCommand dbCmd)
Returns
System.Int64
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
LoadReferences<T>(IDbCommand, T, IEnumerable<String>)
View Source
Declaration
public static void LoadReferences<T>(this IDbCommand dbCmd, T instance, IEnumerable<string> include = null)
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
<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
Type | Name |
---|---|
ServiceStack.OrmLite.ModelDefinition | modelDef |
ServiceStack.OrmLite.ModelDefinition | refModelDef |
Type | refType |
GetRefFieldDefIfExists(ModelDefinition, ModelDefinition)
View Source
Declaration
public static FieldDefinition GetRefFieldDefIfExists(this ModelDefinition modelDef, ModelDefinition refModelDef)
Returns
ServiceStack.OrmLite.FieldDefinition
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.ModelDefinition | modelDef |
ServiceStack.OrmLite.ModelDefinition | refModelDef |
GetSelfRefFieldDefIfExists(ModelDefinition, ModelDefinition, FieldDefinition)
View Source
Declaration
public static FieldDefinition GetSelfRefFieldDefIfExists(this ModelDefinition modelDef, ModelDefinition refModelDef, FieldDefinition fieldDef)
Returns
ServiceStack.OrmLite.FieldDefinition
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.ModelDefinition | modelDef |
ServiceStack.OrmLite.ModelDefinition | refModelDef |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | name |
System.Object | value |
ParameterDirection | direction |
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
Type | Name |
---|---|
IDbCommand | dbCmd |
System.String | name |
System.Object | value |
ParameterDirection | direction |
System.Nullable<DbType> | dbType |
System.Nullable<System.Byte> | precision |
System.Nullable<System.Byte> | scale |
System.Nullable<System.Int32> | size |