| Author |
Message |
RangerDick
Joined: 27 Jun 2012 Posts: 2 Location: SoCal
|
Posted: Wed Jun 27, 2012 1:46 am Post subject: rowversion, or how to exclude a column from a mapping |
|
|
Hi!
I need guidance on how to exclude a field from the data comparison.
This particular field is being used as a high water mark in the tables and it is a rowversion type (timestamp). Does the SDK automaticall exclude them on comparison, or do I have to explicitly exclude them? Does it matter if I am using them in the where clause for comparison?
A brief example would be most welcomed. I have found a sample using the tablemapping.fieldmapping.add but not for the remove.
Thanks,
RD |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 840 Location: My desk.
|
Posted: Thu Jun 28, 2012 2:07 pm Post subject: |
|
|
| Thanks for your post- it looks like one of the examples on our SDK page may help: see here - although I just spotted you mailed us to say you're okay now, so if you already worked it out that's great! |
|
| Back to top |
|
 |
RangerDick
Joined: 27 Jun 2012 Posts: 2 Location: SoCal
|
Posted: Mon Jul 02, 2012 7:19 pm Post subject: |
|
|
Thanks for the support. I did not find a direct sample (perhaps I missed it). This was my solution in C#:
mapping.FieldMappings.Remove(mapping.FieldMappings["FieldName"]); |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 840 Location: My desk.
|
Posted: Mon Jul 02, 2012 7:33 pm Post subject: |
|
|
| Yeah, that'll work - you can either code them specifically or iterate through a collection of names obtained from "somewhere" |
|
| 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