Esempio n. 1
0
        /// <summary>
        /// Return T-SQL data type definition, based on schema definition for a column
        /// </summary>
        /// <param name="type">type</param>
        /// <param name="columnSize">Column size</param>
        /// <param name="numericPrecision">Precision</param>
        /// <param name="numericScale">Scale</param>
        /// <returns>string</returns>
        public static string SQLGetType(object type, int columnSize, int numericPrecision, int numericScale)
        {
            if (DataSource != null)
            {
                return(DataSource.SQLGetType(type, columnSize, numericPrecision, numericScale));
            }

            return(null);
        }