示例#1
0
        public virtual Int64 CreateAtWarehouse(ORMWarehouseClass AWarehouse)
        {
            Int64 Result = 0;

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

                // --> allocate fields
                if (Result == 0)
                {
                    this.F_InsertKeyMode = InsertKeyModeEnum.None;
                    this.F_Warehouse = AWarehouse;
                    this.F_KeyFieldName = "";
                } // if (Result == 0)

                // --> update status
                F_ORMWarehouseEntityClass_IsReady = true;

                return Result;
        }
示例#2
0
        // ...
        public override Int64 Create()
        {
            Int64 Result = 0;

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

                // --> allocate fields
                if (Result == 0)
                {
                    this.F_InsertKeyMode = InsertKeyModeEnum.None;
                    this.F_DeleteKeyMode = DeleteModeEnum.None;

                    this.F_Warehouse = null;
                    this.F_KeyFieldName = "";
                } // if (Result == 0)

                // --> update status
                F_ORMWarehouseEntityClass_IsReady = true;

                return Result;
        }