viewmodel
Where do you put your validation in asp.net mvc 3?
One common recommended practice in asp.net mvc is that you should not send your business models to your views.. instead you should create viewmodels specific to each view.[详细]
2023-03-17 00:03 分类:问答Cannot implicitly convert type 'System.Collections.Generic.List to 'Models.CustomerViewModel'
I am trying to pass a list of data containing two objects that are contained in a custom interface, My interface consists of[详细]
2023-03-16 17:28 分类:问答MVC2/LINQ Repository pattern help for a beginner
I have the following method in my repository that returns a mix of two objects from my database, public IQueryable <ICustomersAndSitesM> CustomerAndSites[详细]
2023-03-16 16:27 分类:问答MVC 3 design of composed views
Recently I faced an ugly problem in my project when I begin the design of a complex View which have to handle with many data sources. The purpose of the View is to show data related to the profile of[详细]
2023-03-16 05:57 分类:问答ASP.net MVC.2 return multiple objects to strongly typed viewmodel
I am new to MVC and using the repository pattern in an attempt to select data containing two objects to return to a strongly typed viewmodel,[详细]
2023-03-16 02:06 分类:问答Checkbox in silverlight + viewmodel + C#
I have two checkboxes A and B. I want B to be disabled when I check A. Do you 开发者_运维百科know how to do it? Thank you in advance.Well if you are using MVVM as it seems from viewmodel tag then simp[详细]
2023-03-16 00:45 分类:问答Preserving a bound ListBox's scroll position when the underlying collection changes
I have a ScrollViewer and a ListBox inside it which is bound to an ObservableCol开发者_运维问答lection in the view model. The ScrollViewer is maximized to take up all available space of the parent con[详细]
2023-03-15 22:19 分类:问答Close a Window programatically after a OK_Button click from a ViewModel using MVVM
I am showing a window. The instance is created and shown within the ViewModel (bad practice I know...)[详细]
2023-03-15 12:57 分类:问答ViewModel with List<BaseClass> and editor templates
I have a view that lists tables being added to a floor plan. Tables derive from TableInputModel to allow for RectangleTableInputModel, CircleTableInputModel, etc[详细]
2023-03-15 06:57 分类:问答using DependencyInjection at the top level, how to pass the services down the architecture?
Using an IOC-container like Unity,AutoFac or others you have to Register and Resolve the IInterface to get the instance. This you do in the app class the root of all.[详细]
2023-03-15 01:48 分类:问答