comparison key.
hemantgaur
Posts: 27
is there a way to figure out which columns are going to be used for comparison, preferably in selectiondelegate implementation?
I am sure it must be stored somewhere before even comparison begins, i guess I am asking how do i access it runtime?
Thank you very much.
I am sure it must be stored somewhere before even comparison begins, i guess I am asking how do i access it runtime?
Thank you very much.
Comments
If I understand you correctly, what you want to do is create a set of default mappings, then loop through each TableMapping and check the "Include" property on it, and in each of these loop through all of its' FieldMappings and see if they have the "Include" property set to true.
If a column could not be mapped, the "Include" property will be set to "false".
Thank you.
Each TableMapping has a MatchingMappings property -- this is a collection of Fields that make up the comparison key, whether the mapping was created automatically or you created it yourself.