Skip to main content

ISalType

Namespace: PPJ.Runtime

Assembly: PPJ.Runtime.50 (5.0.0.0)

Exposes a SAL value in the form used for database parameter binding.

public interface ISalType

Implementations provide the database type, underlying CLR value, and SAL null state. A SAL null is a value state rather than a null reference to this interface.

Example:

using PPJ.Runtime;

ISalType value = new SalString("Ada");
System.Data.DbType type = value.DbType; // String
object parameterValue = value.Value; // "Ada"

ISalType missing = SalString.Null;
bool isNull = missing.IsNull; // true

Properties

Instance member DbType

DbType: Gets the database type corresponding to this SAL value.

Instance member IsNull

Boolean: Gets whether this value represents SAL null.

Instance member Value

Object: Gets the underlying value for database binding.

The CLR type and null representation are determined by the implementing SAL type.

Implemented By

NameDescription
SalBinaryWraps a byte array as a SAL binary value.
SalArray<T>Provides a typed SAL array with dynamic first-dimension growth and optional explicit bounds.
SalArrayImplements storage, bounds, conversion, and collection operations for SAL arrays.
SalBooleanRepresents a SAL Boolean backed by a decimal value and a separate null state.
SalDateTimeRepresents a date and time with a separate SAL null state.
SalNumberRepresents a decimal number with a separate SAL null state.
SalStringRepresents a SAL string or binary buffer, with SAL null semantics and implicit conversions to and from String.
SalStringContextCarries a SAL context object together with its string representation.
SalWindowHandleRepresents a SAL handle and exposes operations on the associated window or control.