Ejemplo n.º 1
0
        private async Task <int> SqlCommand(SyncTask task)
        {
            SqlConnectionParameter sqlConnection = Helper.GetSqlConnection(_job.Connections, task.TargetConnection);

            _sqlAdapter.ConnectionParameter = sqlConnection;
            _sqlAdapter.Command             = task.TargetCommand.ToString();
            _sqlAdapter.Map = task.Mapping;

            int results = await _sqlAdapter.ExecuteCommandAsync();

            return(results);
        }