I've finished the bulk of my PITA ETL, using Rhino. I was able to get
a lot of things done quickly!

One thing that didn't work as I had hoped was aggregation. I was
hoping to be able to have multiple aggregations ( RowCount, RowCount
if this, RowCountIfThat, etc, and provide those values to properties
on the process (via the OnRowProcessed) .

Started with a simple RowCount from 
http://ayende.com/Blog/archive/2008/01/16/Rhino-ETL-2.0.aspx
.

I found that if I used 2 of these, the second only ever gets 1 row. In
fact, any operation registered after that only gets 1 row.

So, I tried this :
IOperation counter = new BranchingOperation()
                                         .Add(Partial
                                                .Register(new
RowCountOperation())
                                                .Register(new
RowCountInsertedOperation())
                                                .Register(new
RowCountSkusOperation())
                                                );
                counter.OnRowProcessed += new Action<IOperation,
Row>(counter_OnRowProcessed);
                counter.OnFinishedProcessing += new
Action<IOperation>(counter_OnFinishedProcessing);
                Register(counter);

That provided no luck either.

I'd imagine this is a syntax issue, and a noob issue, but could not
find any example in all the resources of how this ( using multiple
aggregates ) would work.

Any suggestions ?

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to