示例#1
0
        private KeyData DoDeleteAction(IInputData input)
        {
            DefaultUpdateAction(input);

            DataRow row    = MainRow;
            KeyData result = MainResolver.CreateKeyData(row);

            MainResolver.Delete(input);

            Commit(input);
            return(result);
        }
示例#2
0
        private OutputData DoPost(IInputData input)
        {
            PreparePostObject(input);

            switch (input.Style.Style)
            {
            case PageStyle.Insert:
                DefaultInsertAction(input);
                break;

            case PageStyle.Update:
                DefaultUpdateAction(input);
                break;

            default:
                TkDebug.ThrowImpossibleCode(this);
                break;
            }

            PostData(input);
            Commit(input);

            return(OutputData.CreateToolkitObject(MainResolver.CreateKeyData()));
        }