Class SupaRecord
An abstract name/value container representing a single SUPA data record.
A SUPA record is basically just a name/value string dictionary.
Assembly: Subsembly.Sepa.dll
Syntax
public abstract class SupaRecord : ISupaRecord
Methods
GetBool(string)
Gets the named field value from this record as a boolean value. If the field
does not exist, then false
is returned.
Declaration
public virtual bool GetBool(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
GetDate(string)
Declaration
public virtual DateTime GetDate(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
GetDateTime(string)
Declaration
public virtual DateTime GetDateTime(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
GetDecimal(string)
Declaration
public virtual decimal GetDecimal(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
GetNumber(string)
Declaration
public virtual int GetNumber(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
GetValue(string)
Gets the named field value from this record as a formatted string.
Declaration
public abstract string GetValue(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
HasValue(string)
Indicates whether the record contains a non-null entry for the given field.
Declaration
public virtual bool HasValue(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
SetBool(string, bool)
Sets the named field value from the SUPA formatted boolean value.
Declaration
public virtual void SetBool(string sName, bool fValue)
Parameters
SetDate(string, DateTime)
Declaration
public virtual void SetDate(string sName, DateTime tDate)
Parameters
SetDateTime(string, DateTime)
Declaration
public virtual void SetDateTime(string sName, DateTime tDate)
Parameters
SetDecimal(string, decimal)
Declaration
public virtual void SetDecimal(string sName, decimal nValue)
Parameters
SetNumber(string, int)
Declaration
public virtual void SetNumber(string sName, int nValue)
Parameters
Type |
Name |
Description |
string |
sName |
|
int |
nValue |
|
SetValue(string, string)
Sets the named field value from the SUPA formatted value string.
Declaration
public abstract void SetValue(string sName, string sValue)
Parameters
Implements
See Also