SelectionDelegate examples
jbaggaley
Posts: 38
Does anyone know where there is a good example of using SelectionDelegate? We have a database containing sales information relevant to specific reps and I only want to synchronise the information relevant to them and anyone beneath them (in the case of a manager). Looking through the documentation, creating SelectionDelegate is mentioned as a method for partitioning/choosing records but there are not many samples so that I can see whether the technique would work for me. Is there a better way of choosing such as filtering by a specific field? Will the synchronisation process go through the entire table to find missing/outdated records or can it be told to use a specific key field and cut the processing time down?
Thanks
Jon
Thanks
Jon
:-)zz[
Comments
Yes, here is one example:
http://www.red-gate.com/messageboard/vi ... horizontal
I have some pre-built projects I can also send if you email support@red-gate.com and ask nicely.
What would make this much easier would be if a property of the SelectionDelegate object was the row being examined. Then, the comparison code could be in the delegate rather than before the GetMigrationSQL call. Alternately, the delegate could be modified or a different kind of delegate could be specified that had two parameters (the SynchronizationRecord and the DifferenceRow.
If you have some code that more closely resembles replication, could you post it somewhere?
Thanks!