Say I am implementing a view for Food. (ASP.NET MVC2) Then depending on the type (say fruit or vegetable for example) 开发者_运维技巧I will change the view.
I am currently developing a new WPF application and have the majority of my business logic layer developed (ie my Models).
I know it could be bad to use domain models as view models. If my domain model has a property named IsAdmin and I have a Create controller action to create users, someone could alter my form and get i
I have a database with a one-to-many relationship that I\'m having a difficult time modeling in ASP.NET MVC. For the sake of simplicity, let\'s say table A represents office buildings, table B represe
I have a case that is very similar to this, but following the advice in the answers does not solve my problem.
I know that you can bind to a viewModel\'s collection on the client side like so: <%for(int i = 0; i < Model.contacts.Count; i ++){%>
I\'m after some opinions \\ best practice for handling updates to my repository in the following scenario:
I have a DataGrid with some text columns and a button. I want to bind button to a command on the ViewModel. Since, Columns are inside the context of the ItemSource, i want to change the DataContext fo
I am developing my first DDD application and trying to follow some basic rules I\'ve studied in these last few months.
Trying to avoid repetition here. I have an action in a base class controller which I am not allowed to modify. I\'d like my action to do some checks, call the base class action, and modify the result