Esempio n. 1
0
        public override void Load(Keys Keys, DataObjects_Framework.BaseObjects.Base Obj_Parent = null)
        {
            Interface_DataAccess Da = Do_Methods.CreateDataAccess();

            try
            {
                if (this.mIsCache)
                {
                    Da.Connect(Do_Methods.Convert_String(Do_Globals.gSettings.pCollection[Layer01_Constants.CnsConnectionString_Cache]));
                }
                else
                {
                    Da.Connect();
                }

                base.Load(Da, Keys, Obj_Parent);
            }
            catch (Exception Ex) { throw Ex; }
            finally { Da.Close(); }
        }
Esempio n. 2
0
 protected virtual void Setup(
     DataObjects_Framework.BaseObjects.Base Base
     , Int64 System_ModulesID
     , Boolean IsReadOnly = false)
 {
     this.mBase = Base;
     this.mSystem_ModulesID = System_ModulesID;
     this.mIsReadOnly = IsReadOnly;
 }