Mvvm Applications and Business Layer Locations

I want to use the MVVM design pattern in WPF and a Silverlight application.
Where can I implement business logic in a WPF or Silverlight application with the MVVM design pattern? !! (in model, ViewModel or elsewhere? !!)

Please describe and link to any sample (s) ...
thanks

-1
source share
2 answers

Your business has no place in the MVVM application. You must be accounted for in a separate class library. This has many advantages that I could explain in case you want me to.

Anyway, here's what your solution structure looks like:

  • []. : .
  • [Project].Data: .
  • [Project].Data.Sql: SQL . Oracle, [Project].Data.Oracle. ?
  • [].API: -. .
  • [].: .
  • [Project].UI.MainApplication: WPF.
  • [Project].UI.Shared: , WPF. , Object Model Service Contract .
  • [Project].UI. [OtherApp]: ( ).

, "M" MVVM , View , ... ..

+3

, - ModelView , wpf ViewModel

0

All Articles