Esempio n. 1
0
        virtual public void BeginUpdate(params object[] ids)
        {
            IDataTransactionBasic dataTa;

            if (TryGet(out dataTa))
            {
                dataTa.BeginUpdate(ownerObject as IDataTransactionBasic, ids);
                State = DataTransactionState.Begin;
                return;
            }
            DataTransactionHelper.BeginUpdate(PropertyDataPairList, ownerObject as IDataTransactionBasic, ids);
            State = DataTransactionState.Begin;
        }
        public void BeginUpdate(IDataTransaction parent, params object[] ids)
        {
            Parent = parent;
            object value = CurrentData;

            if (DataTransactionHelper.IsDataTransactionObject(value))
            {
                DataTransactionHelper.BeginUpdate(value, parent, ids);
                if (value is IList)
                {
                    Backup(value);
                }
                State = DataTransactionState.Begin;
                return;
            }
            Backup(value);

            isUpdating = true;
            State      = DataTransactionState.Begin;
        }