// ... 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; }
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; }
public ORMEntityClass() : base() { // --> clear status F_ORMEntityClass_IsReady = false; // clear other fields this._Properties = null; }