Copy one object to another

Posted by developer on Stack Overflow See other posts from Stack Overflow or by developer
Published on 2010-03-16T20:47:05Z Indexed on 2010/03/16 20:51 UTC
Read the original article Hit count: 146

Filed under:

Hi All, I have 2 tables, user and userprofile. The userprofile table has a lot of fields similar to the user table. What I need to do is, on click of a button I need to copy all the fields of user table to userprofile table.

UserModel AttData = UserModel[0]; DataServices.Save((UserProfile)AttData.ProfileModel.Instance); UserModel[0] contains all the data in user table. I want to copy this data to AttData.ProfileModel.Instance. How can I do that?

© Stack Overflow or respective owner

Related posts about wpf