Skip to main content

DbDataParameterExtensions

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

Methods

CreateParam(IDbConnection, String, Object, Type, Nullable<DbType>, Nullable<Byte>, Nullable<Byte>, Nullable<Int32>)

View Source
Declaration
public static IDbDataParameter CreateParam(this IDbConnection db, string name, object value = null, Type fieldType = null, DbType? dbType = null, byte? precision = null, byte? scale = null, int? size = null)
Returns

IDbDataParameter

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

CreateParam(IOrmLiteDialectProvider, String, Object, Type, Nullable<DbType>, Nullable<Byte>, Nullable<Byte>, Nullable<Int32>)

View Source
Declaration
public static IDbDataParameter CreateParam(this IOrmLiteDialectProvider dialectProvider, string name, object value = null, Type fieldType = null, DbType? dbType = null, byte? precision = null, byte? scale = null, int? size = null)
Returns

IDbDataParameter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider
System.Stringname
System.Objectvalue
TypefieldType
System.Nullable<DbType>dbType
System.Nullable<System.Byte>precision
System.Nullable<System.Byte>scale
System.Nullable<System.Int32>size

AddQueryParam(IOrmLiteDialectProvider, IDbCommand, Object, FieldDefinition)

View Source
Declaration
public static IDbDataParameter AddQueryParam(this IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, object value, FieldDefinition fieldDef)
Returns

IDbDataParameter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider
IDbCommanddbCmd
System.Objectvalue
ServiceStack.OrmLite.FieldDefinitionfieldDef

AddUpdateParam(IOrmLiteDialectProvider, IDbCommand, Object, FieldDefinition)

View Source
Declaration
public static IDbDataParameter AddUpdateParam(this IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, object value, FieldDefinition fieldDef)
Returns

IDbDataParameter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider
IDbCommanddbCmd
System.Objectvalue
ServiceStack.OrmLite.FieldDefinitionfieldDef

AddParam(IOrmLiteDialectProvider, IDbCommand, Object, FieldDefinition, Action<IDbDataParameter>)

View Source
Declaration
public static IDbDataParameter AddParam(this IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, object value, FieldDefinition fieldDef, Action<IDbDataParameter> paramFilter)
Returns

IDbDataParameter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider
IDbCommanddbCmd
System.Objectvalue
ServiceStack.OrmLite.FieldDefinitionfieldDef
Action<IDbDataParameter>paramFilter

GetInsertParam(IOrmLiteDialectProvider, IDbCommand, Object, FieldDefinition)

View Source
Declaration
public static string GetInsertParam(this IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, object value, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider
IDbCommanddbCmd
System.Objectvalue
ServiceStack.OrmLite.FieldDefinitionfieldDef

GetUpdateParam(IOrmLiteDialectProvider, IDbCommand, Object, FieldDefinition)

View Source
Declaration
public static string GetUpdateParam(this IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, object value, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider
IDbCommanddbCmd
System.Objectvalue
ServiceStack.OrmLite.FieldDefinitionfieldDef