What's the best way to expose a Model object in a ViewModel?
- by Angel
In a WPF MVVM application, I exposed my model object into my viewModel by creating an instance of Model class (which cause dependency) into ViewModel. Instead of creating separate VM properties, I wrap the Model properties inside my ViewModel Property.
My model is just an entity framework generated proxy class:
public partial class TblProduct
{
…