ISalType
Namespace: PPJ.Runtime
Assembly: PPJ.Web.50 (5.0.0.0)
Exposes a SAL value in the form used for database parameter binding.
- C#
- VB.NET
public interface ISalType
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
DbType
DbType: Gets the database type corresponding to this SAL value.
IsNull
Boolean: Gets whether this value represents SAL null.
Value
Object: Gets the underlying value for database binding.
The CLR type and null representation are determined by the implementing SAL type.
Implemented By
| Name | Description |
|---|---|
| SalArray<T> | Provides a typed SAL array with dynamic first-dimension growth and optional explicit bounds. |
| SalBinary | Wraps a byte array as a SAL binary value. |
| SalBoolean | Represents a SAL Boolean backed by a decimal value and a separate null state. |
| SalDateTime | Represents a date and time with a separate SAL null state. |
| SalNumber | Represents a decimal number with a separate SAL null state. |
| SalString | Represents a SAL string or binary buffer, with SAL null semantics and implicit conversions to and from String. |
| SalStringContext | Carries a SAL context object together with its string representation. |
| SalWindowHandle | Represents a SAL handle and exposes operations on the associated window or control. |