Class DbParameterCollectionExtensions
Inheritance
System.Object
DbParameterCollectionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: ArgentSea.dll
Syntax
public static class DbParameterCollectionExtensions
Methods
|
Improve this Doc
View Source
GetBoolean(DbParameter)
Declaration
public static bool GetBoolean(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetByte(DbParameter)
Declaration
public static byte GetByte(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
GetBytes(DbParameter)
Returns a byte array, or null if the parameter value is DbNull.
Declaration
public static byte[] GetBytes(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Byte[] |
Parameter value as a byte[].
|
|
Improve this Doc
View Source
GetDateTime(DbParameter)
Declaration
public static DateTime GetDateTime(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
GetDateTimeOffset(DbParameter)
Declaration
public static DateTimeOffset GetDateTimeOffset(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.DateTimeOffset |
|
|
Improve this Doc
View Source
GetDecimal(DbParameter)
Declaration
public static decimal GetDecimal(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Decimal |
|
|
Improve this Doc
View Source
GetDouble(DbParameter)
Returns a double (64-bit floating point) value from the parameter, or NaN (Not a Number) if the value is DbNull.
Declaration
public static double GetDouble(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Double |
Parameter value as double.
|
|
Improve this Doc
View Source
GetFloat(DbParameter)
Returns a double (32-bit floating point) value from the parameter, or NaN (Not a Number) if the value is DbNull.
Declaration
public static float GetFloat(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Single |
Parameter value as float.
|
|
Improve this Doc
View Source
GetGuid(DbParameter)
Returns a Guid value from the parameter, or Guid.Emtpy if the value is DbNull.
Declaration
public static Guid GetGuid(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Guid |
Parameter value as Guid.
|
|
Improve this Doc
View Source
GetInteger(DbParameter)
Declaration
public static int GetInteger(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetLong(DbParameter)
Returns a Char value from the parameter, or NUL (char 0) if the value is DbNull.
Declaration
public static long GetLong(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Int64 |
Parameter value as Char.
|
|
Improve this Doc
View Source
GetNullableBoolean(DbParameter)
Declaration
public static bool? GetNullableBoolean(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Boolean> |
|
|
Improve this Doc
View Source
GetNullableByte(DbParameter)
Declaration
public static byte? GetNullableByte(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Byte> |
|
|
Improve this Doc
View Source
GetNullableDateTime(DbParameter)
Declaration
public static DateTime? GetNullableDateTime(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.DateTime> |
|
|
Improve this Doc
View Source
GetNullableDateTimeOffset(DbParameter)
Declaration
public static DateTimeOffset? GetNullableDateTimeOffset(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.DateTimeOffset> |
|
|
Improve this Doc
View Source
GetNullableDecimal(DbParameter)
Declaration
public static decimal? GetNullableDecimal(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Decimal> |
|
|
Improve this Doc
View Source
GetNullableDouble(DbParameter)
Declaration
public static double? GetNullableDouble(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Double> |
|
|
Improve this Doc
View Source
GetNullableFloat(DbParameter)
Declaration
public static float? GetNullableFloat(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
|
Improve this Doc
View Source
GetNullableGuid(DbParameter)
Declaration
public static Guid? GetNullableGuid(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Guid> |
|
|
Improve this Doc
View Source
GetNullableInteger(DbParameter)
Declaration
public static int? GetNullableInteger(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
GetNullableLong(DbParameter)
Declaration
public static long? GetNullableLong(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Int64> |
|
|
Improve this Doc
View Source
GetNullableShort(DbParameter)
Declaration
public static short? GetNullableShort(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.Int16> |
|
|
Improve this Doc
View Source
GetNullableTimeSpan(DbParameter)
Declaration
public static TimeSpan? GetNullableTimeSpan(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Nullable<System.TimeSpan> |
|
|
Improve this Doc
View Source
GetShort(DbParameter)
Declaration
public static short GetShort(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
GetString(DbParameter)
Returns a string, or null if the parameter value is DbNull.
Declaration
public static string GetString(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.String |
Parameter value as a string.
|
|
Improve this Doc
View Source
GetTimeSpan(DbParameter)
Declaration
public static TimeSpan GetTimeSpan(this DbParameter prm)
Parameters
Type |
Name |
Description |
System.Data.Common.DbParameter |
prm |
|
Returns
Type |
Description |
System.TimeSpan |
|