matching properties on 'primary key'

Sep 13, 2012 at 11:54 AM
Edited Sep 13, 2012 at 11:55 AM


Are there any examples of matching the source and target when a key of some sort is used to match them up, and then only add new objects when the key values don't match.

My initial investigations indicate that this might be something value injector can do.

I have not yet found an example for it.


Sep 13, 2012 at 12:33 PM

you could do:

if(a.Id == b.Id) a.InjectFrom(b);