Пример #1
0
        public override Guid Execute(out ErrorResultTO errors, int update)
        {
            errors = new ErrorResultTO();
            _databaseServiceExecution.BeforeExecution(errors);

            if (_databaseServiceExecution is DatabaseServiceExecution databaseServiceExecution)
            {
                databaseServiceExecution.InstanceInputDefinitions = InstanceInputDefinition;
                databaseServiceExecution.InstanceOutputDefintions = InstanceOutputDefinition;
            }

            var result = _databaseServiceExecution.Execute(out errors, update);

            _databaseServiceExecution.AfterExecution(errors);
            return(result);
        }
        public override Guid Execute(out ErrorResultTO errors)
        {
            errors = new ErrorResultTO();
            _databaseServiceExecution.BeforeExecution(errors);

            var databaseServiceExecution = _databaseServiceExecution as DatabaseServiceExecution;

            if (databaseServiceExecution != null)
            {
                databaseServiceExecution.InstanceOutputDefintions = InstanceOutputDefinition;
            }

            var result = _databaseServiceExecution.Execute(out errors);

            _databaseServiceExecution.AfterExecution(errors);
            return(result);
        }
 protected override void BeforeExecutionStart(IDSFDataObject dataObject, ErrorResultTO tmpErrors)
 {
     base.BeforeExecutionStart(dataObject, tmpErrors);
     ServiceExecution = new DatabaseServiceExecution(dataObject);
     ServiceExecution.BeforeExecution(tmpErrors);
 }
Пример #4
0
 protected override void BeforeExecutionStart(IDSFDataObject dataObject, ErrorResultTO tmpErrors)
 {
     base.BeforeExecutionStart(dataObject, tmpErrors);
     ServiceExecution = new DatabaseServiceExecution(dataObject);
     ServiceExecution.BeforeExecution(tmpErrors);
 }