private void DataPortal_Fetch()
        {
#if TRACE
            long startTicks = PLLog.Trace("Start", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1);
#endif
            // TODO: load values

            // WinForm versions

            LoadProperty(AttributesECBLProperty, AttributesECBL.Get());

            LoadProperty(CharacteristicsECBLProperty, CharacteristicsECBL.Get());

            LoadProperty(ConstrainedValueListsECBLProperty, ConstrainedValueListsECBL.Get());

            LoadProperty(ConstrainedValuesECBLProperty, ConstrainedValuesECBL.Get());

            LoadProperty(DataTypesECBLProperty, DataTypesECBL.Get());

            LoadProperty(TablesECBLProperty, TablesECBL.Get());

            LoadProperty(TypeAttributesECBLProperty, TypeAttributesECBL.Get());

            LoadProperty(TypesECBLProperty, TypesECBL.Get());

#if TRACE
            PLLog.Trace("End", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2, startTicks);
#endif
        }
        //protected override void DataPortal_Create()
        //{
        //    // TODO: load default values
        //    // omit this override if you have no defaults to set
        //    LoadProperty(TablesECBLProperty, TablesECBL.NewTablesECBL());
        //    //LoadProperty(ChildProperty, EditableChild.NewEditableChild());
        //    base.DataPortal_Create();
        //}

        private void DataPortal_Fetch()
        {
#if TRACE
            long startTicks = PLLog.Trace("Start", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 1);
#endif
            using (var dalManager = HIS.DAL.DALFactory.GetManager())
            {
                var dal = dalManager.GetProvider <HIS.DAL.ISchemaDAL>();

                using (var data = dal.Fetch())
                {
                    // Process the result sets in order (See SP Schema_SelectAll)

                    // Tables
                    LoadProperty(TablesECBLProperty, TablesECBL.Get(data));

                    // LogFunctions
                    data.NextResult();
                    // Skip for now

                    // Attributes
                    data.NextResult();
                    LoadProperty(AttributesECBLProperty, AttributesECBL.Get(data));

                    // Types
                    data.NextResult();
                    LoadProperty(TypesECBLProperty, TypesECBL.Get(data));

                    // TypeAttributes
                    data.NextResult();
                    LoadProperty(TypeAttributesECBLProperty, TypeAttributesECBL.Get(data));

                    // DataTypes
                    data.NextResult();
                    LoadProperty(DataTypesECBLProperty, DataTypesECBL.Get(data));

                    // Characteristics
                    data.NextResult();
                    LoadProperty(CharacteristicsECBLProperty, CharacteristicsECBL.Get(data));

                    // ConstrainedValueLists
                    data.NextResult();
                    LoadProperty(ConstrainedValueListsECBLProperty, ConstrainedValueListsECBL.Get(data));

                    // ConstrainedValues
                    data.NextResult();
                    LoadProperty(ConstrainedValuesECBLProperty, ConstrainedValuesECBL.Get(data));
                }
            }

#if TRACE
            PLLog.Trace("End", PLLOG_APPNAME, CLASS_BASE_ERRORNUMBER + 2, startTicks);
#endif
        }