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
Type | Name |
---|---|
IDbConnection | db |
System.String | name |
System.Object | value |
Type | fieldType |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
System.String | name |
System.Object | value |
Type | fieldType |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
IDbCommand | dbCmd |
System.Object | value |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
AddUpdateParam(IOrmLiteDialectProvider, IDbCommand, Object, FieldDefinition)
View Source
Declaration
public static IDbDataParameter AddUpdateParam(this IOrmLiteDialectProvider dialectProvider, IDbCommand dbCmd, object value, FieldDefinition fieldDef)
Returns
IDbDataParameter
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
IDbCommand | dbCmd |
System.Object | value |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
IDbCommand | dbCmd |
System.Object | value |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
IDbCommand | dbCmd |
System.Object | value |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
IDbCommand | dbCmd |
System.Object | value |
ServiceStack.OrmLite.FieldDefinition | fieldDef |