In MVVM, is every ViewModel coupled to just one Model?

前端 未结 7 1132
日久生厌
日久生厌 2020-12-04 17:04

In an MVVM implementation, is every ViewModel coupled to just one Model?

I am trying to implement the MVVM pattern in a project but I found

7条回答
  •  生来不讨喜
    2020-12-04 17:11

    just use the User model in your view

    public partial class User : Login
    {
        public string Password { get; set; }
    
        public List customer { get; set; }
    }
    

    in this the another model login inherited and the customer model also used in this model..

提交回复
热议问题