Skip to main content
Home Forums Silverlight Programming Programming with .NET - General focus on MVVM model
3 replies. Latest Post by mehtapratik on April 11, 2009.
(0)
mehtapratik
Member
269 points
302 Posts
04-10-2009 6:01 AM |
Hi all,
I have one query regarding mvvm model, For example, if i created one service which returns the List<Person> Data. and now i have created the one class named PersonData(MODEL) and now i want List<Person> data into my new class List<PersonData> , how can i do that? Do i have to loop through a person class and assign it to the PersonData. Is it correct method?
HarshBar...
Star
9908 points
1,719 Posts
04-10-2009 6:29 AM |
You can directly pick from that list or you can write a linq Query and can select only properties reqyuired of persondata object.
04-10-2009 7:58 AM |
thanks harshbardhan, i forgot to think on that direction
04-11-2009 12:41 AM |
HarshBardhan: You can directly pick from that list or you can write a linq Query and can select only properties reqyuired of persondata object.
Can you please give me one example, Thanks