Exemplo n.º 1
0
 /// <summary></summary>
 /// <param name="dbs">(IDbConfiguration) where the List of
 /// ‘Databases’ finds the template, and sends the IDbConfiguration
 /// through to the Table.ConvertInput method.
 /// </param>
 /// <param name="tableName"></param>
 /// <returns></returns>
 public string ConvertInput(Generator.Export.Intrinsic.IDbConfiguration4 dbs, string tableName)
 {
     // I suppose that this loop just checks weather the table exists.
     foreach (DatabaseElement elm in Databases)
     {
         if (elm[tableName] == null)
         {
             continue;
         }
         if (elm.Contains(tableName))
         {
             return(TemplateFactory.Generate(dbs));
         }
     }
     return(string.Format(Gen.Messages.DatabaseCollection_ConvertInput_TableNotFound, tableName.ToUpper()));
 }