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.
I am trying to pass a list of data containing two objects that are contained in a custom interface, My interface consists of
I have the following method in my repository that returns a mix of two objects from my database, public IQueryable <ICustomersAndSitesM> CustomerAndSites
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
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,
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
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
I am showing a window. The instance is created and shown within the ViewModel (bad practice I know...)
I have a view that lists tables being added to a floor plan. Tables derive from TableInputModel to allow for RectangleTableInputModel, CircleTableInputModel, etc
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.