Saxonite v1.2.4.1
This commit is contained in:
@@ -64,6 +64,19 @@ namespace Sarand.Net.Standard.Base.Dbas
|
||||
public bool IsNullable { get; set; } = false;
|
||||
public String Remarks { get; set; } = String.Empty;
|
||||
//-------------------------------------------------------------------
|
||||
// Format.
|
||||
public String GetFormat()
|
||||
{
|
||||
String dataType = StringUtil.OnEmpty(DataTypeNameNative, DataTypeName);
|
||||
String format = dataType;
|
||||
if (dataType.ContainsCI("char") || dataType.ContainsCI("bin"))
|
||||
{
|
||||
if (Size > 0) format += "(" + Size + ")";
|
||||
else format += "(max)";
|
||||
}
|
||||
return format;
|
||||
}
|
||||
//-------------------------------------------------------------------
|
||||
// Variable type and default - used in variable declaration.
|
||||
public String GetVariableTypeName()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user