SchemaZen.Library.Models.Column.SqlTypeToNativeType C# (CSharp) Method

SqlTypeToNativeType() static private method

static private SqlTypeToNativeType ( string sqlType ) : Type
sqlType string
return System.Type
        internal static Type SqlTypeToNativeType(string sqlType)
        {
            switch (sqlType.ToLower()) {
                case "bit":
                    return typeof (bool);
                case "datetime":
                case "smalldatetime":
                    return typeof (DateTime);
                case "int":
                    return typeof (int);
                case "uniqueidentifier":
                    return typeof (Guid);
                case "binary":
                case "varbinary":
                case "image":
                    return typeof (byte[]);
                default:
                    return typeof (string);
            }
        }

Same methods

Column::SqlTypeToNativeType ( ) : Type