Saxonite 1.2.11.5, BusinessMgr.
This commit is contained in:
@@ -78,6 +78,12 @@ namespace Sarand.Net.Standard.Base.Dbas
|
||||
}
|
||||
//-------------------------------------------------------------------
|
||||
// Variable type and default - used in variable declaration.
|
||||
|
||||
/// <summary>
|
||||
/// Column data type name as used in property names.
|
||||
/// <para>- Binary represented as 'ByteArray'.</para>
|
||||
/// <para>- Other data types represented by their variable type.</para>
|
||||
/// </summary>
|
||||
public String GetVariableTypeName()
|
||||
{
|
||||
switch (DataType)
|
||||
@@ -87,6 +93,15 @@ namespace Sarand.Net.Standard.Base.Dbas
|
||||
}
|
||||
return GetVariableType();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Column data type name as used in variable declarations.
|
||||
/// <para>- VarChar represented as 'String'.</para>
|
||||
/// <para>- Bit represented as 'Boolean'.</para>
|
||||
/// <para>- TinyInt/SmallInt/BigInt represented as 'Int16/32/64'.</para>
|
||||
/// <para>- Single/Double/Decimal/DateTime represented 'as-is'.</para>
|
||||
/// <para>- Binary represented as 'Byte[]'.</para>
|
||||
/// </summary>
|
||||
public String GetVariableType()
|
||||
{
|
||||
switch (DataType)
|
||||
@@ -116,6 +131,10 @@ namespace Sarand.Net.Standard.Base.Dbas
|
||||
}
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Default value to be used in column value declarations.
|
||||
/// </summary>
|
||||
public String GetVariableDefault()
|
||||
{
|
||||
switch (DataType)
|
||||
@@ -145,6 +164,11 @@ namespace Sarand.Net.Standard.Base.Dbas
|
||||
}
|
||||
return String.Empty;
|
||||
}
|
||||
/// <summary>
|
||||
/// Method suffix to use for 'GetValue' calls.
|
||||
/// <para>- Binary represented as 'ByteArray'.</para>
|
||||
/// <para>- Other data types represented by their variable type.</para>
|
||||
/// </summary>
|
||||
public String GetGetFieldSuffix()
|
||||
{
|
||||
switch (DataType)
|
||||
|
||||
Reference in New Issue
Block a user