| Author |
Message |
hemantgaur
Joined: 16 Dec 2009 Posts: 20
|
Posted: Fri Jan 29, 2010 6:58 pm Post subject: comparison key. |
|
|
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. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Mon Feb 01, 2010 4:45 pm Post subject: |
|
|
Hello,
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". _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
hemantgaur
Joined: 16 Dec 2009 Posts: 20
|
Posted: Mon Feb 01, 2010 4:53 pm Post subject: comparison key |
|
|
I am sorry. I should have been more clear. I meant primary key. What I meant to ask is out of all the columns that I am comparing what amongst those are the part of the primary key.
Thank you. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Wed Feb 03, 2010 5:36 pm Post subject: |
|
|
Hello,
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group