Saxonite 1.2.11.5, BusinessMgr.

This commit is contained in:
Andy Howard
2024-06-13 14:30:50 +01:00
parent ba5801b4dc
commit 14102d5164
44 changed files with 645 additions and 411 deletions
+24
View File
@@ -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)