示例#1
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__BusinessEntityID);
                track_array.AppendDataValue(1, _cur__RateChangeDate);
                track_array.AppendDataValue(2, _cur__Rate);
                track_array.AppendDataValue(3, _cur__PayFrequency);
                track_array.AppendDataValue(4, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__BusinessEntityID)
                    {
                        track_array.AppendDataValue(0, _cur__BusinessEntityID);
                    }
                    if (_mod__RateChangeDate)
                    {
                        track_array.AppendDataValue(1, _cur__RateChangeDate);
                    }
                }
                if (_mod__Rate)
                {
                    track_array.AppendDataValue(2, _cur__Rate);
                }
                if (_mod__PayFrequency)
                {
                    track_array.AppendDataValue(3, _cur__PayFrequency);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(4, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__BusinessEntityID && _started_with_dbvalues) ? _ori__BusinessEntityID : _cur__BusinessEntityID);
                track_array.AppendPrikeyValue(1, (_mod__RateChangeDate && _started_with_dbvalues) ? _ori__RateChangeDate : _cur__RateChangeDate);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#2
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__ShoppingCartID);
                track_array.AppendDataValue(2, _cur__Quantity);
                track_array.AppendDataValue(3, _cur__ProductID);
                track_array.AppendDataValue(4, _cur__DateCreated);
                track_array.AppendDataValue(5, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__ShoppingCartID)
                {
                    track_array.AppendDataValue(1, _cur__ShoppingCartID);
                }
                if (_mod__Quantity)
                {
                    track_array.AppendDataValue(2, _cur__Quantity);
                }
                if (_mod__ProductID)
                {
                    track_array.AppendDataValue(3, _cur__ProductID);
                }
                if (_mod__DateCreated)
                {
                    track_array.AppendDataValue(4, _cur__DateCreated);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(5, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ShoppingCartItemID && _started_with_dbvalues) ? _ori__ShoppingCartItemID : _cur__ShoppingCartItemID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__CardType);
                track_array.AppendDataValue(2, _cur__CardNumber);
                track_array.AppendDataValue(3, _cur__ExpMonth);
                track_array.AppendDataValue(4, _cur__ExpYear);
                track_array.AppendDataValue(5, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__CardType)
                {
                    track_array.AppendDataValue(1, _cur__CardType);
                }
                if (_mod__CardNumber)
                {
                    track_array.AppendDataValue(2, _cur__CardNumber);
                }
                if (_mod__ExpMonth)
                {
                    track_array.AppendDataValue(3, _cur__ExpMonth);
                }
                if (_mod__ExpYear)
                {
                    track_array.AppendDataValue(4, _cur__ExpYear);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(5, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__CreditCardID && _started_with_dbvalues) ? _ori__CreditCardID : _cur__CreditCardID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__Name);
                track_array.AppendDataValue(2, _cur__ShipBase);
                track_array.AppendDataValue(3, _cur__ShipRate);
                track_array.AppendDataValue(4, _cur__rowguid);
                track_array.AppendDataValue(5, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__Name)
                {
                    track_array.AppendDataValue(1, _cur__Name);
                }
                if (_mod__ShipBase)
                {
                    track_array.AppendDataValue(2, _cur__ShipBase);
                }
                if (_mod__ShipRate)
                {
                    track_array.AppendDataValue(3, _cur__ShipRate);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(4, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(5, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ShipMethodID && _started_with_dbvalues) ? _ori__ShipMethodID : _cur__ShipMethodID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__ProductModelID);
                track_array.AppendDataValue(1, _cur__ProductDescriptionID);
                track_array.AppendDataValue(2, _cur__CultureID);
                track_array.AppendDataValue(3, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__ProductModelID)
                    {
                        track_array.AppendDataValue(0, _cur__ProductModelID);
                    }
                    if (_mod__ProductDescriptionID)
                    {
                        track_array.AppendDataValue(1, _cur__ProductDescriptionID);
                    }
                    if (_mod__CultureID)
                    {
                        track_array.AppendDataValue(2, _cur__CultureID);
                    }
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(3, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ProductModelID && _started_with_dbvalues) ? _ori__ProductModelID : _cur__ProductModelID);
                track_array.AppendPrikeyValue(1, (_mod__ProductDescriptionID && _started_with_dbvalues) ? _ori__ProductDescriptionID : _cur__ProductDescriptionID);
                track_array.AppendPrikeyValue(2, (_mod__CultureID && _started_with_dbvalues) ? _ori__CultureID : _cur__CultureID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                if (_cur__Diagram != null)
                {
                    track_array.AppendDataValue(1, _cur__Diagram);
                }
                track_array.AppendDataValue(2, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__Diagram)
                {
                    track_array.AppendDataValue(1, _cur__Diagram);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(2, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__IllustrationID && _started_with_dbvalues) ? _ori__IllustrationID : _cur__IllustrationID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#7
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__CountryCodeID);
                track_array.AppendDataValue(1, _cur__Name);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__CountryCodeID)
                    {
                        track_array.AppendDataValue(0, _cur__CountryCodeID);
                    }
                }
                if (_mod__Name)
                {
                    track_array.AppendDataValue(1, _cur__Name);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__CountryCodeID && _started_with_dbvalues) ? _ori__CountryCodeID : _cur__CountryCodeID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#8
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                if (_cur__EmailAddress != null)
                {
                    track_array.AppendDataValue(0, _cur__EmailAddress);
                }
                if (_cur__ItemId != null)
                {
                    track_array.AppendDataValue(1, _cur__ItemId);
                }
                if (_cur__Name != null)
                {
                    track_array.AppendDataValue(2, _cur__Name);
                }
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__EmailAddress)
                    {
                        track_array.AppendDataValue(0, _cur__EmailAddress);
                    }
                }
                if (_mod__ItemId)
                {
                    track_array.AppendDataValue(1, _cur__ItemId);
                }
                if (_mod__Name)
                {
                    track_array.AppendDataValue(2, _cur__Name);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__EmailAddress && _started_with_dbvalues) ? _ori__EmailAddress : _cur__EmailAddress);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__Name);
                if (_cur__CatalogDescription != null)
                {
                    track_array.AppendDataValue(2, _cur__CatalogDescription);
                }
                if (_cur__Instructions != null)
                {
                    track_array.AppendDataValue(3, _cur__Instructions);
                }
                track_array.AppendDataValue(4, _cur__rowguid);
                track_array.AppendDataValue(5, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__Name)
                {
                    track_array.AppendDataValue(1, _cur__Name);
                }
                if (_mod__CatalogDescription)
                {
                    track_array.AppendDataValue(2, _cur__CatalogDescription);
                }
                if (_mod__Instructions)
                {
                    track_array.AppendDataValue(3, _cur__Instructions);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(4, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(5, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ProductModelID && _started_with_dbvalues) ? _ori__ProductModelID : _cur__ProductModelID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__ProductID);
                track_array.AppendDataValue(1, _cur__StartDate);
                if (_cur__EndDate != null)
                {
                    track_array.AppendDataValue(2, _cur__EndDate);
                }
                track_array.AppendDataValue(3, _cur__StandardCost);
                track_array.AppendDataValue(4, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__ProductID)
                    {
                        track_array.AppendDataValue(0, _cur__ProductID);
                    }
                    if (_mod__StartDate)
                    {
                        track_array.AppendDataValue(1, _cur__StartDate);
                    }
                }
                if (_mod__EndDate)
                {
                    track_array.AppendDataValue(2, _cur__EndDate);
                }
                if (_mod__StandardCost)
                {
                    track_array.AppendDataValue(3, _cur__StandardCost);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(4, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ProductID && _started_with_dbvalues) ? _ori__ProductID : _cur__ProductID);
                track_array.AppendPrikeyValue(1, (_mod__StartDate && _started_with_dbvalues) ? _ori__StartDate : _cur__StartDate);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#11
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                if (_cur__ProductAssemblyID != null)
                {
                    track_array.AppendDataValue(1, _cur__ProductAssemblyID);
                }
                track_array.AppendDataValue(2, _cur__ComponentID);
                track_array.AppendDataValue(3, _cur__StartDate);
                if (_cur__EndDate != null)
                {
                    track_array.AppendDataValue(4, _cur__EndDate);
                }
                track_array.AppendDataValue(5, _cur__UnitMeasureCode);
                track_array.AppendDataValue(6, _cur__BOMLevel);
                track_array.AppendDataValue(7, _cur__PerAssemblyQty);
                track_array.AppendDataValue(8, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__ProductAssemblyID)
                    {
                        track_array.AppendDataValue(1, _cur__ProductAssemblyID);
                    }
                    if (_mod__ComponentID)
                    {
                        track_array.AppendDataValue(2, _cur__ComponentID);
                    }
                    if (_mod__StartDate)
                    {
                        track_array.AppendDataValue(3, _cur__StartDate);
                    }
                }
                if (_mod__EndDate)
                {
                    track_array.AppendDataValue(4, _cur__EndDate);
                }
                if (_mod__UnitMeasureCode)
                {
                    track_array.AppendDataValue(5, _cur__UnitMeasureCode);
                }
                if (_mod__BOMLevel)
                {
                    track_array.AppendDataValue(6, _cur__BOMLevel);
                }
                if (_mod__PerAssemblyQty)
                {
                    track_array.AppendDataValue(7, _cur__PerAssemblyQty);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(8, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(1, (_mod__ProductAssemblyID && _started_with_dbvalues) ? _ori__ProductAssemblyID : _cur__ProductAssemblyID);
                track_array.AppendPrikeyValue(2, (_mod__ComponentID && _started_with_dbvalues) ? _ori__ComponentID : _cur__ComponentID);
                track_array.AppendPrikeyValue(3, (_mod__StartDate && _started_with_dbvalues) ? _ori__StartDate : _cur__StartDate);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__CategoryID);
                if (_cur__Description != null)
                {
                    track_array.AppendDataValue(1, _cur__Description);
                }
                track_array.AppendDataValue(2, _cur__Name);
                if (_cur__Picture != null)
                {
                    track_array.AppendDataValue(3, _cur__Picture);
                }
                if (_cur__Thumbnail != null)
                {
                    track_array.AppendDataValue(4, _cur__Thumbnail);
                }
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__CategoryID)
                    {
                        track_array.AppendDataValue(0, _cur__CategoryID);
                    }
                }
                if (_mod__Description)
                {
                    track_array.AppendDataValue(1, _cur__Description);
                }
                if (_mod__Name)
                {
                    track_array.AppendDataValue(2, _cur__Name);
                }
                if (_mod__Picture)
                {
                    track_array.AppendDataValue(3, _cur__Picture);
                }
                if (_mod__Thumbnail)
                {
                    track_array.AppendDataValue(4, _cur__Thumbnail);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__CategoryID && _started_with_dbvalues) ? _ori__CategoryID : _cur__CategoryID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__ProductID);
                track_array.AppendDataValue(2, _cur__ReviewerName);
                track_array.AppendDataValue(3, _cur__ReviewDate);
                track_array.AppendDataValue(4, _cur__EmailAddress);
                track_array.AppendDataValue(5, _cur__Rating);
                if (_cur__Comments != null)
                {
                    track_array.AppendDataValue(6, _cur__Comments);
                }
                track_array.AppendDataValue(7, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__ProductID)
                {
                    track_array.AppendDataValue(1, _cur__ProductID);
                }
                if (_mod__ReviewerName)
                {
                    track_array.AppendDataValue(2, _cur__ReviewerName);
                }
                if (_mod__ReviewDate)
                {
                    track_array.AppendDataValue(3, _cur__ReviewDate);
                }
                if (_mod__EmailAddress)
                {
                    track_array.AppendDataValue(4, _cur__EmailAddress);
                }
                if (_mod__Rating)
                {
                    track_array.AppendDataValue(5, _cur__Rating);
                }
                if (_mod__Comments)
                {
                    track_array.AppendDataValue(6, _cur__Comments);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(7, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ProductReviewID && _started_with_dbvalues) ? _ori__ProductReviewID : _cur__ProductReviewID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#14
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                if (_cur__ThumbNailPhoto != null)
                {
                    track_array.AppendDataValue(1, _cur__ThumbNailPhoto);
                }
                if (_cur__ThumbnailPhotoFileName != null)
                {
                    track_array.AppendDataValue(2, _cur__ThumbnailPhotoFileName);
                }
                if (_cur__LargePhoto != null)
                {
                    track_array.AppendDataValue(3, _cur__LargePhoto);
                }
                if (_cur__LargePhotoFileName != null)
                {
                    track_array.AppendDataValue(4, _cur__LargePhotoFileName);
                }
                track_array.AppendDataValue(5, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__ThumbNailPhoto)
                {
                    track_array.AppendDataValue(1, _cur__ThumbNailPhoto);
                }
                if (_mod__ThumbnailPhotoFileName)
                {
                    track_array.AppendDataValue(2, _cur__ThumbnailPhotoFileName);
                }
                if (_mod__LargePhoto)
                {
                    track_array.AppendDataValue(3, _cur__LargePhoto);
                }
                if (_mod__LargePhotoFileName)
                {
                    track_array.AppendDataValue(4, _cur__LargePhotoFileName);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(5, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__ProductPhotoID && _started_with_dbvalues) ? _ori__ProductPhotoID : _cur__ProductPhotoID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#15
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__BusinessEntityID);
                if (_cur__TerritoryID != null)
                {
                    track_array.AppendDataValue(1, _cur__TerritoryID);
                }
                if (_cur__SalesQuota != null)
                {
                    track_array.AppendDataValue(2, _cur__SalesQuota);
                }
                track_array.AppendDataValue(3, _cur__Bonus);
                track_array.AppendDataValue(4, _cur__CommissionPct);
                track_array.AppendDataValue(5, _cur__SalesYTD);
                track_array.AppendDataValue(6, _cur__SalesLastYear);
                track_array.AppendDataValue(7, _cur__rowguid);
                track_array.AppendDataValue(8, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__BusinessEntityID)
                    {
                        track_array.AppendDataValue(0, _cur__BusinessEntityID);
                    }
                }
                if (_mod__TerritoryID)
                {
                    track_array.AppendDataValue(1, _cur__TerritoryID);
                }
                if (_mod__SalesQuota)
                {
                    track_array.AppendDataValue(2, _cur__SalesQuota);
                }
                if (_mod__Bonus)
                {
                    track_array.AppendDataValue(3, _cur__Bonus);
                }
                if (_mod__CommissionPct)
                {
                    track_array.AppendDataValue(4, _cur__CommissionPct);
                }
                if (_mod__SalesYTD)
                {
                    track_array.AppendDataValue(5, _cur__SalesYTD);
                }
                if (_mod__SalesLastYear)
                {
                    track_array.AppendDataValue(6, _cur__SalesLastYear);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(7, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(8, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__BusinessEntityID && _started_with_dbvalues) ? _ori__BusinessEntityID : _cur__BusinessEntityID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#16
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__TransactionID);
                track_array.AppendDataValue(1, _cur__ProductID);
                track_array.AppendDataValue(2, _cur__ReferenceOrderID);
                track_array.AppendDataValue(3, _cur__ReferenceOrderLineID);
                track_array.AppendDataValue(4, _cur__TransactionDate);
                track_array.AppendDataValue(5, _cur__TransactionType);
                track_array.AppendDataValue(6, _cur__Quantity);
                track_array.AppendDataValue(7, _cur__ActualCost);
                track_array.AppendDataValue(8, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__TransactionID)
                    {
                        track_array.AppendDataValue(0, _cur__TransactionID);
                    }
                }
                if (_mod__ProductID)
                {
                    track_array.AppendDataValue(1, _cur__ProductID);
                }
                if (_mod__ReferenceOrderID)
                {
                    track_array.AppendDataValue(2, _cur__ReferenceOrderID);
                }
                if (_mod__ReferenceOrderLineID)
                {
                    track_array.AppendDataValue(3, _cur__ReferenceOrderLineID);
                }
                if (_mod__TransactionDate)
                {
                    track_array.AppendDataValue(4, _cur__TransactionDate);
                }
                if (_mod__TransactionType)
                {
                    track_array.AppendDataValue(5, _cur__TransactionType);
                }
                if (_mod__Quantity)
                {
                    track_array.AppendDataValue(6, _cur__Quantity);
                }
                if (_mod__ActualCost)
                {
                    track_array.AppendDataValue(7, _cur__ActualCost);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(8, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__TransactionID && _started_with_dbvalues) ? _ori__TransactionID : _cur__TransactionID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__OrderID);
                track_array.AppendDataValue(1, _cur__OrderLine);
                track_array.AppendDataValue(2, _cur__Discount);
                track_array.AppendDataValue(3, _cur__ProductID);
                track_array.AppendDataValue(4, _cur__Quantity);
                track_array.AppendDataValue(5, _cur__TaxType);
                track_array.AppendDataValue(6, _cur__UnitPrice);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__OrderID)
                    {
                        track_array.AppendDataValue(0, _cur__OrderID);
                    }
                    if (_mod__OrderLine)
                    {
                        track_array.AppendDataValue(1, _cur__OrderLine);
                    }
                }
                if (_mod__Discount)
                {
                    track_array.AppendDataValue(2, _cur__Discount);
                }
                if (_mod__ProductID)
                {
                    track_array.AppendDataValue(3, _cur__ProductID);
                }
                if (_mod__Quantity)
                {
                    track_array.AppendDataValue(4, _cur__Quantity);
                }
                if (_mod__TaxType)
                {
                    track_array.AppendDataValue(5, _cur__TaxType);
                }
                if (_mod__UnitPrice)
                {
                    track_array.AppendDataValue(6, _cur__UnitPrice);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__OrderID && _started_with_dbvalues) ? _ori__OrderID : _cur__OrderID);
                track_array.AppendPrikeyValue(1, (_mod__OrderLine && _started_with_dbvalues) ? _ori__OrderLine : _cur__OrderLine);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__CurrencyRateDate);
                track_array.AppendDataValue(2, _cur__FromCurrencyCode);
                track_array.AppendDataValue(3, _cur__ToCurrencyCode);
                track_array.AppendDataValue(4, _cur__AverageRate);
                track_array.AppendDataValue(5, _cur__EndOfDayRate);
                track_array.AppendDataValue(6, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__CurrencyRateDate)
                {
                    track_array.AppendDataValue(1, _cur__CurrencyRateDate);
                }
                if (_mod__FromCurrencyCode)
                {
                    track_array.AppendDataValue(2, _cur__FromCurrencyCode);
                }
                if (_mod__ToCurrencyCode)
                {
                    track_array.AppendDataValue(3, _cur__ToCurrencyCode);
                }
                if (_mod__AverageRate)
                {
                    track_array.AppendDataValue(4, _cur__AverageRate);
                }
                if (_mod__EndOfDayRate)
                {
                    track_array.AppendDataValue(5, _cur__EndOfDayRate);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(6, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__CurrencyRateID && _started_with_dbvalues) ? _ori__CurrencyRateID : _cur__CurrencyRateID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#19
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__Description);
                track_array.AppendDataValue(2, _cur__DiscountPct);
                track_array.AppendDataValue(3, _cur__Type);
                track_array.AppendDataValue(4, _cur__Category);
                track_array.AppendDataValue(5, _cur__StartDate);
                track_array.AppendDataValue(6, _cur__EndDate);
                track_array.AppendDataValue(7, _cur__MinQty);
                if (_cur__MaxQty != null)
                {
                    track_array.AppendDataValue(8, _cur__MaxQty);
                }
                track_array.AppendDataValue(9, _cur__rowguid);
                track_array.AppendDataValue(10, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__Description)
                {
                    track_array.AppendDataValue(1, _cur__Description);
                }
                if (_mod__DiscountPct)
                {
                    track_array.AppendDataValue(2, _cur__DiscountPct);
                }
                if (_mod__Type)
                {
                    track_array.AppendDataValue(3, _cur__Type);
                }
                if (_mod__Category)
                {
                    track_array.AppendDataValue(4, _cur__Category);
                }
                if (_mod__StartDate)
                {
                    track_array.AppendDataValue(5, _cur__StartDate);
                }
                if (_mod__EndDate)
                {
                    track_array.AppendDataValue(6, _cur__EndDate);
                }
                if (_mod__MinQty)
                {
                    track_array.AppendDataValue(7, _cur__MinQty);
                }
                if (_mod__MaxQty)
                {
                    track_array.AppendDataValue(8, _cur__MaxQty);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(9, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(10, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__SpecialOfferID && _started_with_dbvalues) ? _ori__SpecialOfferID : _cur__SpecialOfferID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#20
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__Name);
                track_array.AppendDataValue(2, _cur__CountryRegionCode);
                track_array.AppendDataValue(3, _cur__Group);
                track_array.AppendDataValue(4, _cur__SalesYTD);
                track_array.AppendDataValue(5, _cur__SalesLastYear);
                track_array.AppendDataValue(6, _cur__CostYTD);
                track_array.AppendDataValue(7, _cur__CostLastYear);
                track_array.AppendDataValue(8, _cur__rowguid);
                track_array.AppendDataValue(9, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__Name)
                {
                    track_array.AppendDataValue(1, _cur__Name);
                }
                if (_mod__CountryRegionCode)
                {
                    track_array.AppendDataValue(2, _cur__CountryRegionCode);
                }
                if (_mod__Group)
                {
                    track_array.AppendDataValue(3, _cur__Group);
                }
                if (_mod__SalesYTD)
                {
                    track_array.AppendDataValue(4, _cur__SalesYTD);
                }
                if (_mod__SalesLastYear)
                {
                    track_array.AppendDataValue(5, _cur__SalesLastYear);
                }
                if (_mod__CostYTD)
                {
                    track_array.AppendDataValue(6, _cur__CostYTD);
                }
                if (_mod__CostLastYear)
                {
                    track_array.AppendDataValue(7, _cur__CostLastYear);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(8, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(9, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__TerritoryID && _started_with_dbvalues) ? _ori__TerritoryID : _cur__TerritoryID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#21
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                if (_cur__PersonID != null)
                {
                    track_array.AppendDataValue(1, _cur__PersonID);
                }
                if (_cur__StoreID != null)
                {
                    track_array.AppendDataValue(2, _cur__StoreID);
                }
                if (_cur__TerritoryID != null)
                {
                    track_array.AppendDataValue(3, _cur__TerritoryID);
                }
                track_array.AppendDataValue(4, _cur__AccountNumber);
                track_array.AppendDataValue(5, _cur__rowguid);
                track_array.AppendDataValue(6, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__PersonID)
                {
                    track_array.AppendDataValue(1, _cur__PersonID);
                }
                if (_mod__StoreID)
                {
                    track_array.AppendDataValue(2, _cur__StoreID);
                }
                if (_mod__TerritoryID)
                {
                    track_array.AppendDataValue(3, _cur__TerritoryID);
                }
                if (_mod__AccountNumber)
                {
                    track_array.AppendDataValue(4, _cur__AccountNumber);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(5, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(6, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__CustomerID && _started_with_dbvalues) ? _ori__CustomerID : _cur__CustomerID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#22
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__ProductID);
                track_array.AppendDataValue(2, _cur__OrderQty);
                track_array.AppendDataValue(3, _cur__StockedQty);
                track_array.AppendDataValue(4, _cur__ScrappedQty);
                track_array.AppendDataValue(5, _cur__StartDate);
                if (_cur__EndDate != null)
                {
                    track_array.AppendDataValue(6, _cur__EndDate);
                }
                track_array.AppendDataValue(7, _cur__DueDate);
                if (_cur__ScrapReasonID != null)
                {
                    track_array.AppendDataValue(8, _cur__ScrapReasonID);
                }
                track_array.AppendDataValue(9, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__ProductID)
                {
                    track_array.AppendDataValue(1, _cur__ProductID);
                }
                if (_mod__OrderQty)
                {
                    track_array.AppendDataValue(2, _cur__OrderQty);
                }
                if (_mod__StockedQty)
                {
                    track_array.AppendDataValue(3, _cur__StockedQty);
                }
                if (_mod__ScrappedQty)
                {
                    track_array.AppendDataValue(4, _cur__ScrappedQty);
                }
                if (_mod__StartDate)
                {
                    track_array.AppendDataValue(5, _cur__StartDate);
                }
                if (_mod__EndDate)
                {
                    track_array.AppendDataValue(6, _cur__EndDate);
                }
                if (_mod__DueDate)
                {
                    track_array.AppendDataValue(7, _cur__DueDate);
                }
                if (_mod__ScrapReasonID)
                {
                    track_array.AppendDataValue(8, _cur__ScrapReasonID);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(9, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__WorkOrderID && _started_with_dbvalues) ? _ori__WorkOrderID : _cur__WorkOrderID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#23
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__BusinessEntityID);
                track_array.AppendDataValue(1, _cur__AccountNumber);
                track_array.AppendDataValue(2, _cur__Name);
                track_array.AppendDataValue(3, _cur__CreditRating);
                track_array.AppendDataValue(4, _cur__PreferredVendorStatus);
                track_array.AppendDataValue(5, _cur__ActiveFlag);
                if (_cur__PurchasingWebServiceURL != null)
                {
                    track_array.AppendDataValue(6, _cur__PurchasingWebServiceURL);
                }
                track_array.AppendDataValue(7, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__BusinessEntityID)
                    {
                        track_array.AppendDataValue(0, _cur__BusinessEntityID);
                    }
                }
                if (_mod__AccountNumber)
                {
                    track_array.AppendDataValue(1, _cur__AccountNumber);
                }
                if (_mod__Name)
                {
                    track_array.AppendDataValue(2, _cur__Name);
                }
                if (_mod__CreditRating)
                {
                    track_array.AppendDataValue(3, _cur__CreditRating);
                }
                if (_mod__PreferredVendorStatus)
                {
                    track_array.AppendDataValue(4, _cur__PreferredVendorStatus);
                }
                if (_mod__ActiveFlag)
                {
                    track_array.AppendDataValue(5, _cur__ActiveFlag);
                }
                if (_mod__PurchasingWebServiceURL)
                {
                    track_array.AppendDataValue(6, _cur__PurchasingWebServiceURL);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(7, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__BusinessEntityID && _started_with_dbvalues) ? _ori__BusinessEntityID : _cur__BusinessEntityID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__CustomerID);
                track_array.AppendDataValue(3, _cur__OrderID);
                track_array.AppendDataValue(5, _cur__OrderDate);
                if (_cur__ShippedDate != null)
                {
                    track_array.AppendDataValue(6, _cur__ShippedDate);
                }
                if (_cur__DeliveredDate != null)
                {
                    track_array.AppendDataValue(7, _cur__DeliveredDate);
                }
                if (_cur__ShipCity != null)
                {
                    track_array.AppendDataValue(8, _cur__ShipCity);
                }
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__OrderID)
                    {
                        track_array.AppendDataValue(3, _cur__OrderID);
                    }
                }
                if (_mod__CustomerID)
                {
                    track_array.AppendDataValue(0, _cur__CustomerID);
                }
                if (_mod__OrderDate)
                {
                    track_array.AppendDataValue(5, _cur__OrderDate);
                }
                if (_mod__ShippedDate)
                {
                    track_array.AppendDataValue(6, _cur__ShippedDate);
                }
                if (_mod__DeliveredDate)
                {
                    track_array.AppendDataValue(7, _cur__DeliveredDate);
                }
                if (_mod__ShipCity)
                {
                    track_array.AppendDataValue(8, _cur__ShipCity);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(3, (_mod__OrderID && _started_with_dbvalues) ? _ori__OrderID : _cur__OrderID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#25
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(1, _cur__AddressLine1);
                if (_cur__AddressLine2 != null)
                {
                    track_array.AppendDataValue(2, _cur__AddressLine2);
                }
                track_array.AppendDataValue(3, _cur__City);
                track_array.AppendDataValue(4, _cur__StateProvinceID);
                track_array.AppendDataValue(5, _cur__PostalCode);
                if (_cur__SpatialLocation != null)
                {
                    track_array.AppendDataValue(6, _cur__SpatialLocation);
                }
                track_array.AppendDataValue(7, _cur__rowguid);
                track_array.AppendDataValue(8, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_mod__AddressLine1)
                {
                    track_array.AppendDataValue(1, _cur__AddressLine1);
                }
                if (_mod__AddressLine2)
                {
                    track_array.AppendDataValue(2, _cur__AddressLine2);
                }
                if (_mod__City)
                {
                    track_array.AppendDataValue(3, _cur__City);
                }
                if (_mod__StateProvinceID)
                {
                    track_array.AppendDataValue(4, _cur__StateProvinceID);
                }
                if (_mod__PostalCode)
                {
                    track_array.AppendDataValue(5, _cur__PostalCode);
                }
                if (_mod__SpatialLocation)
                {
                    track_array.AppendDataValue(6, _cur__SpatialLocation);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(7, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(8, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__AddressID && _started_with_dbvalues) ? _ori__AddressID : _cur__AddressID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#26
0
        void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
        {
            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.AppendDataValue(0, _cur__BusinessEntityID);
                track_array.AppendDataValue(1, _cur__Name);
                if (_cur__SalesPersonID != null)
                {
                    track_array.AppendDataValue(2, _cur__SalesPersonID);
                }
                if (_cur__Demographics != null)
                {
                    track_array.AppendDataValue(3, _cur__Demographics);
                }
                track_array.AppendDataValue(4, _cur__rowguid);
                track_array.AppendDataValue(5, _cur__ModifiedDate);
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                if (_started_with_dbvalues)
                {
                    if (_mod__BusinessEntityID)
                    {
                        track_array.AppendDataValue(0, _cur__BusinessEntityID);
                    }
                }
                if (_mod__Name)
                {
                    track_array.AppendDataValue(1, _cur__Name);
                }
                if (_mod__SalesPersonID)
                {
                    track_array.AppendDataValue(2, _cur__SalesPersonID);
                }
                if (_mod__Demographics)
                {
                    track_array.AppendDataValue(3, _cur__Demographics);
                }
                if (_mod__rowguid)
                {
                    track_array.AppendDataValue(4, _cur__rowguid);
                }
                if (_mod__ModifiedDate)
                {
                    track_array.AppendDataValue(5, _cur__ModifiedDate);
                }
                if (track_array.HasData == false)
                {
                    return;
                }
            }

            if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.AppendPrikeyValue(0, (_mod__BusinessEntityID && _started_with_dbvalues) ? _ori__BusinessEntityID : _cur__BusinessEntityID);
            }

            if (_recordstatus == DataRecordStatus.New)
            {
                track_array.Status = TrackArrayStatus.DataForINSERT;
            }
            else if (_recordstatus == DataRecordStatus.Existing)
            {
                track_array.Status = TrackArrayStatus.DataForUPDATE;
            }
            else if (_recordstatus == DataRecordStatus.ExistingDelete)
            {
                track_array.Status = TrackArrayStatus.DataForDELETE;
            }
        }
示例#27
0
		void IRecordBase.WriteChangesToTrackArray(TrackArray track_array)
		{
			if (_recordstatus == DataRecordStatus.New)
			{
				track_array.AppendDataValue(1, _cur__RevisionNumber);
				track_array.AppendDataValue(2, _cur__Status);
				track_array.AppendDataValue(3, _cur__EmployeeID);
				track_array.AppendDataValue(4, _cur__VendorID);
				track_array.AppendDataValue(5, _cur__ShipMethodID);
				track_array.AppendDataValue(6, _cur__OrderDate);
				if (_cur__ShipDate != null) track_array.AppendDataValue(7, _cur__ShipDate);
				track_array.AppendDataValue(8, _cur__SubTotal);
				track_array.AppendDataValue(9, _cur__TaxAmt);
				track_array.AppendDataValue(10, _cur__Freight);
				track_array.AppendDataValue(11, _cur__TotalDue);
				track_array.AppendDataValue(12, _cur__ModifiedDate);
			}
			else if (_recordstatus == DataRecordStatus.Existing)
			{
				if (_mod__RevisionNumber) track_array.AppendDataValue(1, _cur__RevisionNumber);
				if (_mod__Status) track_array.AppendDataValue(2, _cur__Status);
				if (_mod__EmployeeID) track_array.AppendDataValue(3, _cur__EmployeeID);
				if (_mod__VendorID) track_array.AppendDataValue(4, _cur__VendorID);
				if (_mod__ShipMethodID) track_array.AppendDataValue(5, _cur__ShipMethodID);
				if (_mod__OrderDate) track_array.AppendDataValue(6, _cur__OrderDate);
				if (_mod__ShipDate) track_array.AppendDataValue(7, _cur__ShipDate);
				if (_mod__SubTotal) track_array.AppendDataValue(8, _cur__SubTotal);
				if (_mod__TaxAmt) track_array.AppendDataValue(9, _cur__TaxAmt);
				if (_mod__Freight) track_array.AppendDataValue(10, _cur__Freight);
				if (_mod__TotalDue) track_array.AppendDataValue(11, _cur__TotalDue);
				if (_mod__ModifiedDate) track_array.AppendDataValue(12, _cur__ModifiedDate);
				if (track_array.HasData == false) return;
			}

			if (_recordstatus == DataRecordStatus.Existing || _recordstatus == DataRecordStatus.ExistingDelete)
			{
				track_array.AppendPrikeyValue(0, (_mod__PurchaseOrderID && _started_with_dbvalues) ? _ori__PurchaseOrderID : _cur__PurchaseOrderID);
			}

			if (_recordstatus == DataRecordStatus.New) track_array.Status = TrackArrayStatus.DataForINSERT;
			else if (_recordstatus == DataRecordStatus.Existing) track_array.Status = TrackArrayStatus.DataForUPDATE;
			else if (_recordstatus == DataRecordStatus.ExistingDelete) track_array.Status = TrackArrayStatus.DataForDELETE;
		}