viewmodel
Tracing my Data-Entity class and its MVC-ViewModel equivalent class match each other
I\'m developing an MVC3 application with EntityFramework v4.1. According to most common MVC best practices, i should separate my data access layer objects from my view-model objects. I should not use[详细]
2023-03-11 01:53 分类:问答Returning the View Model to a Controller from a Form.Submit client action
I have a controller with 2 Index methods: public ActionResult Index() { viewModel.PipelineIndex pivm = new viewModel.PipelineIndex(null, User.Identity.Name);[详细]
2023-03-10 22:16 分类:问答How can I get a double from the View into My Model?
This is weird and I\'m being on this for a couple days with no more ideas. Even asked before with no results as well[详细]
2023-03-09 09:21 分类:问答MVVM Silverlight 4 Parent Child View Models
I have a page that holds a number combo boxes. Each combo box is bound to a separate viewmodel. How would I get all the values from the comboboxes and pass them to another viewmodel (using mvvm)?[详细]
2023-03-09 07:07 分类:问答ViewModel has no properties set in Model using HttpPost Create method
I have a simple MVC3 app with an EF4 Model Log .Name .CreatedDate .LogTypeId LogTypes .Id .Description and a ViewModel[详细]
2023-03-09 06:10 分类:问答Two forms, one page. View Model, Model or something else?
I have a component that deals with uploading images, it works fine when in its own form it is a view bound to a view model, mapped to the main model in the controller, and similarly I have a standard[详细]
2023-03-07 20:02 分类:问答MVC 3 + EF 4.1 + POCOs + ViewModel pattern + Controller with scaffolding == confusion!
I\'m [finally!] tackling MVC (version 3) after years of ASP.NET forms development. I have a strong background in n-tier application architecture, and I\'m trying to approach this new project properly,[详细]
2023-03-07 16:43 分类:问答Validation messages not showing while using same named attributes in the Model?
I have two models i.e. Login and Register: Login Model public class LoginModel { [Required(ErrorMessage = \"Email is required\")][详细]
2023-03-07 13:21 分类:问答Do I need a custom modelbinder for my Create Action?
I have been doing a bit of research on this but, I am having a little trouble understanding when modelbinding is needed in MVC 3.I have created a ViewModel to supply data to my Create view.[详细]
2023-03-05 23:16 分类:问答How to make a Viewmodel of type IEnumerable?
I am using the following code for a master view model that contains two lists of data, namespace trsDatabase.Models[详细]
2023-03-05 10:04 分类:问答