Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to
I've noticed an existence of DataRow.SetParentRow Method.
MSDN documentation is quite brief: Sets the parent row of a DataRow with specified new parent DataRow.
It wasn't clear does the functions fills foreign key values in the child row from the parent one.
Thanks to Reflector, I confirmed, that it does SetKeyValues .
Please note that from performance point of view it is important to call SetParentRow first and add the childRow to the child table later..
Posted on Friday, July 25, 2008 8:06 PM .Net Framework | Back to top

Comments on this post: DataRow.SetParentRow Method

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: