示例#1
0
        /// <summary>
        /// Carga las Tables de la base de datos accediendo a la base de datos nuevamente.-
        /// </summary>
        /// <returns></returns>
        public void LoadTables()
        {
            if (!_ReloadObjects)
            {
                return;
            }
            TablesBack wTablesBack = new TablesBack(_DataBaseServer.CnnString.ToString());

            wTablesBack.AddElementEvent += new AddElementHandler(TablesBack_AddElementEvent);
            try
            {
                _Tables = wTablesBack.LoadTables();

                _Tables.IsLoaded = true;

                if (OnTablesLoad != null)
                {
                    OnTablesLoad();
                }
            }
            catch (Exception ex)
            {
                throw new DataBaseExeption(ex, _DataBaseServer.CnnString);
            }
            finally
            {
                wTablesBack.AddElementEvent -= new AddElementHandler(TablesBack_AddElementEvent);
                wTablesBack = null;
            }
        }
示例#2
0
        /// <summary>
        /// Rellena la tabla con sus respectivas columnas .-
        /// </summary>
        /// <param name="pTable">Table</param>
        public void Table_FillColumns(Table pTable)
        {
            if (pTable.IsColumnsLoaded)
            {
                return;
            }

            pTable.IsColumnsLoaded = true;

            TablesBack wTablesBack = new TablesBack(_DataBaseServer.CnnString.ToString());

            try
            {
                wTablesBack.FillColumns(pTable);
            }
            catch (Exception ex)
            { throw new DataBaseExeption(ex, _DataBaseServer.CnnString); }
        }
示例#3
0
        /// <summary>
        /// Rellena la tabla con sus respectivas columnas .-
        /// </summary>
        /// <param name="pTable">Table</param>
        public void Table_FillColumns(Table pTable)
        {
            if (pTable.IsColumnsLoaded) return;

            pTable.IsColumnsLoaded = true;

            TablesBack wTablesBack = new TablesBack(_DataBaseServer.CnnString.ToString());
            try
            {
                wTablesBack.FillColumns(pTable);
            }
            catch (Exception ex)
            { throw new DataBaseExeption(ex, _DataBaseServer.CnnString); }

        }
示例#4
0
		/// <summary>
		/// Carga las Tables de la base de datos accediendo a la base de datos nuevamente.-
		/// </summary>
		/// <returns></returns>
		public void LoadTables()
		{
			if(!_ReloadObjects) return;
			TablesBack wTablesBack = new TablesBack (_DataBaseServer.CnnString.ToString());
            wTablesBack.AddElementEvent += new AddElementHandler(TablesBack_AddElementEvent);
            try
            {
                _Tables = wTablesBack.LoadTables();

                _Tables.IsLoaded = true;

                if (OnTablesLoad != null)
                    OnTablesLoad();


            }
            catch (Exception ex)
            {
                throw new DataBaseExeption(ex, _DataBaseServer.CnnString);
            }
            finally 
            {
                wTablesBack.AddElementEvent -= new AddElementHandler(TablesBack_AddElementEvent);
                wTablesBack = null;
            }
		
		}