SqlScriptColumnTypeMap.GetNumbericType
SqlScriptColumnTypeMap.GetNumbericType method
Gets numeric type in the database.
[Obsolete("Use SqlScriptColumnTypeMap.GetNumberType() method instead.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual string GetNumbericType()
Remarks
NOTE: This method is now obsolete. Instead, please use SqlScriptColumnTypeMap.GetNumberType() method . This method will be removed 6 months later since July 2026. Aspose apologizes for any inconvenience you may have experienced.
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Saving;
namespace AsposeCellsExamples
{
public class SqlScriptColumnTypeMapMethodGetNumbericTypeDemo
{
public static void Run()
{
// Create an instance of SqlScriptColumnTypeMap
SqlScriptColumnTypeMap columnTypeMap = new SqlScriptColumnTypeMap();
// Get and display the numeric type mapping
string numericType = columnTypeMap.GetNumbericType();
Console.WriteLine("Numeric Type in Database: " + numericType);
// Create a simple workbook with numeric data
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
worksheet.Cells["A1"].PutValue("Number");
worksheet.Cells["A2"].PutValue(123.45);
// Save with SQL script options using the type mapping
SqlScriptSaveOptions saveOptions = new SqlScriptSaveOptions
{
ColumnTypeMap = columnTypeMap
};
workbook.Save("NumericTypeDemo.sql", saveOptions);
}
}
}
See Also
- class SqlScriptColumnTypeMap
- namespace Aspose.Cells.Saving
- assembly Aspose.Cells