Beispiel #1
0
        // ...
        public override Int64 Create()
        {
            Int64 Result = 0;

                // --> execute inherited constructor
                Result = base.Create();

                // --> allocate fields
                if (Result == 0)
                {
                    this._Properties = AllocateProperties();
                    this.ClearProperties();
                } // if (Result == 0)

                // --> update status
                F_ORMEntityClass_IsReady = true;

                return Result;
        }
Beispiel #2
0
        public override Int64 Destroy()
        {
            Int64 Result = 0;

                // --> update status
                F_ORMEntityClass_IsReady = false;

                // --> deallocate fields
                if (Result == 0)
                {
                    if (this._Properties != null)
                    {
                        this._Properties.Destroy();
                        this._Properties = null;
                    } // if (this._Properties != null)
                } // if (Result == 0)

                // --> execute inherited destructor
                Result = base.Destroy();

                return Result;
        }
Beispiel #3
0
        public ORMEntityClass()
            : base()
        {
            // --> clear status
                F_ORMEntityClass_IsReady = false;

                // clear other fields
                this._Properties = null;
        }