I am trying to use Model first Entity Framework in MVC4. Would like to disable the creation of some properties in the entity model, these properties only suppose to be used as a viewModel. And I will populate the model properties in the controller dynamically.
May I know what annotation attribute I should put for these properties?
If this cannot be done, then I must create a separated ViewModel to do this. However, the view model will still have other properties linked with the entity model, what is the best way to map them together? Thanks.