Exemplo n.º 1
0
        public string[] DatabaseTableFields(string table)
        {
            var words    = new List <string>();
            var actTable = StaticTreeClass.GetTableObjectFromName(_dbReg, table);

            foreach (var tcf in actTable.Fields.Values)
            {
                words.Add(tcf.Name);
            }
            return(words.ToArray());
        }
Exemplo n.º 2
0
 public void GetSourceFieldsFromTableObject(string SourceTableName)
 {
     cbSourceTableFields.Items.Clear();
     if (SourceTableName.Length > 0)
     {
         var DestFds = StaticTreeClass.GetTableObjectFromName(_dbReg, SourceTableName).Fields;
         foreach (TableFieldClass dstr in DestFds.Values)
         {
             cbSourceTableFields.Items.Add(dstr.Name);
         }
     }
     //  cbSourceTableFieldNames.Text = ForeignKeyObject.FieldName;
 }