Пример #1
0
 protected void QuoteDefaultValues(MySqlSchemaCollection schemaCollection)
 {
     if ((schemaCollection != null) && schemaCollection.ContainsColumn("COLUMN_DEFAULT"))
     {
         foreach (MySqlSchemaRow row in schemaCollection.Rows)
         {
             object obj2 = row["COLUMN_DEFAULT"];
             if (MetaData.IsTextType(row["DATA_TYPE"].ToString()))
             {
                 row["COLUMN_DEFAULT"] = string.Format("{0}", obj2);
             }
         }
     }
 }
Пример #2
0
        protected void QuoteDefaultValues(MySqlSchemaCollection schemaCollection)
        {
            if (schemaCollection == null)
            {
                return;
            }
            if (!schemaCollection.ContainsColumn("COLUMN_DEFAULT"))
            {
                return;
            }

            foreach (MySqlSchemaRow row in schemaCollection.Rows)
            {
                object defaultValue = row["COLUMN_DEFAULT"];
                if (MetaData.IsTextType(row["DATA_TYPE"].ToString()))
                {
                    row["COLUMN_DEFAULT"] = String.Format("{0}", defaultValue);
                }
            }
        }
Пример #3
0
        protected void QuoteDefaultValues(MySqlSchemaCollection schemaCollection)
        {
            if (schemaCollection == null) return;
              if (!schemaCollection.ContainsColumn("COLUMN_DEFAULT")) return;

              foreach (MySqlSchemaRow row in schemaCollection.Rows)
              {
            object defaultValue = row["COLUMN_DEFAULT"];
            if (MetaData.IsTextType(row["DATA_TYPE"].ToString()))
              row["COLUMN_DEFAULT"] = String.Format("{0}", defaultValue);
              }
        }