Exemplo n.º 1
0
        public ColumnInfo(string columnName, bool isNullable, bool isIdentity, string dataType)
        {
            ColumnName = columnName;
            IsNullable = isNullable;
            IsIdentity = isIdentity;
            DataType   = dataType;

            SqlDatabaseTypeName = SqlDataType.GetSqlDbType(DataType);
            DotNetType          = SqlDataType.GetDotNetType(DataType, IsNullable);
            SqlReaderMethod     = SqlDataType.GetSqlReaderMethod(DataType, IsNullable);
        }
 public static string GetDotNetType(this IProcedureParameter procedureParameter)
 {
     return(SqlDataType.GetDotNetType(procedureParameter.SqlDataType, procedureParameter.IsNullable));
 }