viewmodel
How to configure AutoMapper to flatten a 1:n relation?
Consider two entity classes CD and Track: public class CD { public long Id {get; set;} public string Name {get; set;}[详细]
2023-03-29 20:55 分类:问答ASP.Net MVC3 Model vs ViewModel - property that I don't want written to the database
I\'m currently toying with asp.net mvc3 and have a question with respect to models and viewmodels. I have a database model that has a DateTime field. When I display this on screen I wan开发者_如何学P[详细]
2023-03-29 12:14 分类:问答ASP.NET MVC Selecting value from dropdownlist
I have next model (simplified): public class CarType { public int Id { get; set; } [Required] public string Name { get; set; }[详细]
2023-03-29 06:31 分类:问答Prism: How to inject a view-model instance in a region?
After weeks of using Prism I have been through every kind of navigation methods. But there is still one thing that I haven\'t been able to achieve with Prism \"out-of-the-box\": navigate to a view-mod[详细]
2023-03-27 04:49 分类:问答MVC3 & EF4 How to pass data to a select list using a viewmodel
I have viewmodel which i am contructing in a Create get action, public class SiteAdminCreateViewModel[详细]
2023-03-25 19:50 分类:问答Overriding DisplayFormat(DataFormatString)
public abstract class MyBaseClass { [DisplayFormat(DataFormatString = \"{0:0.00}\")] public virtual decimal Value[详细]
2023-03-25 04:20 分类:问答Mocking HttpContext in MVC **Outside** of the Controller
Scenario We\'re developing a new MVC web project and we\'re trying to adhere to the Skinny Controller pattern as described in this article http://codebetter.com/iancooper/2008/12/03/the-fat-controlle[详细]
2023-03-25 02:21 分类:问答Problem passing data from repository to viewmodel
I have the following viewmodel, public class SiteAdminCreateViewModel { public Customer Customer { get; private set; }[详细]
2023-03-24 17:51 分类:问答Using Linq To SQL to update a record from a MVC3 ViewModel
I\'m trying to update a record in a database with the values in a ViewModel via Linq To SQL.I had it working but it has since stopped (more on this later).[详细]
2023-03-24 05:25 分类:问答How do i submit the complete viewmodel to an other view?
I\'m using MVC3 (razor) and i\'m trying to get the following working. I have a list of snippets. These snippets have some general settings and then have a translation for an unknown ammount of langua[详细]
2023-03-23 22:23 分类:问答