Exemplo n.º 1
0
        public override async Task <int> GoAsync()
        {
            if (string.IsNullOrWhiteSpace(ProcedureName))
            {
                throw new MissingProcedureNameException();
            }
            var procedureName = "[" + SchemaName + "].[" + ProcedureName + "]";
            int num;

            if (ParameterDefinitions.Any())
            {
                num = await StatementExecutor.ExecuteNonQueryStoredProcedureAsync(procedureName,
                                                                                  ParameterDefinitions.ToArray());
            }
            else
            {
                num = await StatementExecutor.ExecuteNonQueryStoredProcedureAsync(procedureName);
            }
            return(num);
        }