Skip to main content

Microsoft Silverlight

Answered Question focus on MVVM modelRSS Feed

(0)

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

focus on MVVM model

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?

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Answered Question

Re: focus on MVVM model

 You can directly pick from that list or you can write a linq Query and can select only properties reqyuired of persondata object.

Mark as answer if this post answered your question.

Harsh Bardhan

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

Re: Re: focus on MVVM model

 thanks harshbardhan, i forgot to think on that direction Big Smile

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

Re: focus on MVVM model

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

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities