Ejemplo n.º 1
0
        public MySQLNameTable(string prefix, string name, bool trim_info)
            : base(null, prefix, name, true, true)
        {
            DataColumn dc = this.Columns.Add(XDataTable.Name(this), typeof(string));

            dc.Unique = true;

            DsnSQLUtil.CreateDataTable(connection, this);
            Fill();
        }
Ejemplo n.º 2
0
 public MySQLNameTable(DsnConnection dsn, string prefix, string name, bool trim_info, bool auto_fill, bool simple_name)
     : base(dsn, prefix, name, true, trim_info, false)
 {
     // otherwise non-simple will be added by base initilalizer.
     if (simple_name)
     {
         DataColumn dc = this.Columns.Add(simple_name ? "name" : XDataTable.Name(this), typeof(string));
         dc.Unique = true;
     }
     if (auto_fill)
     {
         DsnSQLUtil.CreateDataTable(connection, this);
         Fill();
     }
 }