123456789101112131415161718192021222324252627282930313233 |
- using FastReport.Data;
- using System.Collections.Generic;
- namespace FastReport.FastQueryBuilder
- {
- internal class DataBase
- {
- public List<Table> TableList { get; } = new List<Table>();
- public DataConnectionBase dataBase { get; }
- public DataBase(DataConnectionBase db)
- {
- dataBase = db;
- try
- {
- dataBase.CreateAllTables(false);
- }
- catch
- {
- }
- foreach (TableDataSource tds in dataBase.Tables)
- {
- TableList.Add(new Table(tds));
- }
- TableList.Sort((x, y) => x.Name.CompareTo(y.Name));
- }
- public string GetQuotationChars() => dataBase.GetQuotationChars();
- }
- }
|