private void RefreshData() { m_refreshing = m_appobj.FindDatabaseCache(); if (m_refreshing != null) { m_refreshing.BeginRefresh(); } CallLoad(m_appobj); }
public override void DataRefresh() { m_children = null; m_refreshing = this.FindDatabaseCache(); if (m_refreshing != null) { m_refreshing.BeginRefresh(); } }
public override void EndLoadChildren(IAsyncResult async) { if (m_refreshing != null) { m_refreshing.EndRefresh(); m_refreshing = null; } m_usageConn.Connection.EndInvoke(async); }
protected override void DoLoadData() { base.DoLoadData(); m_objs.Clear(); try { if (m_appobj != null) { Widget.GetObjectList(m_objs, m_appobj, ConnPack); } } finally { if (m_refreshing != null) { m_refreshing.EndRefresh(); m_refreshing = null; } } }
public DatabaseStructure Run(ISqlDialect dialect, IPhysicalConnection conn, string dbname, DatabaseStructureMembers members, IProgressInfo progress) { AnalyserCache = conn.Cache.GetAnalyserCache(dbname); m_conn = conn; //m_serverVersion = m_dbConn.ServerVersion; //ParseVersion(); m_dialect = dialect; m_members = members; m_dbname = dbname; m_progress = progress; m_db.Dialect = m_dialect; m_definedSpecs = m_dialect.GetSpecificTypes(); PrepareMembers(); SetCurWork(Texts.Get("s_loading_tables")); LoadDomains(); LoadTableList(); LoadTableColumns(); LoadConstraints(); LoadIndexes(); AfterLoadIndexesOrConstraints(); InternalAfterLoadConstraints(); MarkFilledTableMembers(); LoadSchemata(); LoadCharacterSets(); LoadCollations(); SetCurWork(Texts.Get("s_loading_objects")); LoadSpecificObjects(); LoadDatabaseOptions(); LoadViewsAsTables(); LoadDependencies(); return(m_db); }
public static void PutTableColumns(this DatabaseCache cache, string ns, NameWithSchema table, DataTable value) { string key = table != null?table.ToString() : "@#all"; cache.Put(ns, key, value); }
public static DataTable GetTableColumns(this DatabaseCache cache, string ns, NameWithSchema table) { string key = table != null?table.ToString() : "@#all"; return((DataTable)cache.Get(ns, key)); }
public static void PutTableAnalyser(this DatabaseCache cache, string key, TableAnalyser value) { cache.Put("analyser.tableanal", key, value); }
public static TableAnalyser GetTableAnalyser(this DatabaseCache cache, string key) { return((TableAnalyser)cache.Get("analyser.tableanal", key)); }
public static void PutQueryStructure(this DatabaseCache cache, string sql, TableStructure value) { cache.Put("analyser.querystructure", sql, value); }
public static TableStructure GetQueryStructure(this DatabaseCache cache, string sql) { return((TableStructure)cache.Get("analyser.querystructure", sql)); }
public static void PutSqlData(this DatabaseCache cache, string sql, DataTable value) { cache.Put("analyser.sqldata", sql, value); }
public static DataTable GetSqlData(this DatabaseCache cache, string sql) { return((DataTable)cache.Get("analyser.sqldata", sql)); }