viewmodel Questions

2

Solved

I have a viewModel on my page that holds the data for an overview of current states of some devices. So far everything works great except for one issue: I need to set the title attribute of a div e...
Wakeful asked 18/6, 2013 at 14:0

4

I have recently started investigating the MVVM pattern with WPF for an upcoming project. I started with Josh Smith's MSDN article. I have a question (well many, but let's start with one): I have a...
Hydrogenize asked 1/1, 2010 at 14:15

3

Javascript code: var main = new Vue({ el: "#main", data: { currentView: "top", }, }); var topComponent = Vue.component('top', Vue.extend({ template: "#top", })); Now when I a...
Steger asked 17/5, 2014 at 18:28

1

I have a Data layer which holds my EF6 DbFirst edmx, repositories, and AutoMappings. I also have a Model layer with a Poco for each auto generated entity in my Data layer. The properties pretty mu...
Cari asked 18/2, 2015 at 1:5

1

I have used EF Designer from database to build my models from a database created for my project. For a single controller, I need to reference multiple models. An example of this is that there...
Conferral asked 17/12, 2014 at 2:4

3

Solved

ViewModel is a term that is used in both MVVM (Model-View-ViewModel) and the recommended implementation for ASP.NET MVC. Researching "ViewModel" can be confusing given that each pattern uses the sa...
Planck asked 21/12, 2009 at 10:42

1

Solved

I have a bunch of DTO classes that inherit from this CardBase: // base class public class CardBase { public int TransId {get; set; } public string UserId { get; set; } public int Shift { get; s...
Cursed asked 5/12, 2014 at 14:9

1

Solved

i have a component that extended from the filefield, and i added a custom property 'serverPath' to it ,and also i have defined the getter and setter . code : Ext.define('MyApp.ux.Field.File',{ ...
Clawson asked 10/10, 2014 at 9:18

4

Solved

I have one main view which has a tab control. When a tab is selected, it calls the appropriate view to display. I have a function in view model which has to know which tab was selected to preform a...
Placeman asked 3/12, 2014 at 3:50

4

Solved

Whose responsibility is it to populate the values in an ASP MVC 5 architecture (C#, EF), for e.g. if we have PurchaseRecordsViewModel , PurchaseRecords Domain Model , PurchaseController Does the ...
Pupil asked 15/10, 2014 at 20:11

1

Solved

Both code blocks below work, in context and seem completely functionally equivalent. I understand js prototypes reasonably well, so I'm not asking about them per se (unless that is the only differe...
Pachston asked 4/10, 2014 at 23:18

2

Please refer to How can I tell my DataTemplate to bind to a property in the PARENT ViewModel? I have similar problem... But this solution didn't work for me. I have a MainViewModel which has an ob...
Sectarianism asked 10/9, 2013 at 11:4

5

Solved

I am using MVVM Light and have used the packaged messenger system to communicate between view models, however I have hit a bit of a dilemma! Basically when a user clicks on a customer record the co...
Olnee asked 26/9, 2013 at 13:33

1

Solved

I want to create a parent object with child/related objects in the same view. An example would be: create one Father (with some name) along with all his sons (with their names). I have created a vi...
Pyjamas asked 18/8, 2014 at 13:53

2

Solved

I am using EF4 DbContext to provide the model for an ASP.NET MVC app. I use ViewModels to provide data to the views and Automapper to perform the mapping between the EF POCOs and the ViewModels. Au...
Corriecorriedale asked 9/11, 2012 at 19:29

1

When a view model is created you can populate the options (e.g. used in a dropdown list) into a setter property of the view model. The problem is that when that view model is later passed as a para...

4

Every article found in the Internet on using ViewModels and utilizing Automapper gives the guidelines of the "Controller -> View" direction mapping. You take a domain model along with all Select Li...

3

Solved

I'm using Domain driven N-layered application architecture with EF code first in my recent project, I defined my Repository contracts, In Domain layer. A basic contract to make other Repositories l...
Footboard asked 25/4, 2014 at 8:26

2

Solved

I've abandoned the MVVM midway through app development just to get this app out. I've written a method in the code behind to update the database/datagrid etc. My application navigation is using ...
Donley asked 6/3, 2014 at 16:7

2

Solved

Here is the scenario, I need to load up a view model object from a several domain objects that are being returned from multiple web service service calls. The code that transforms the domain model ...
Osseous asked 6/2, 2014 at 8:1

1

Solved

Reading a SO question, I realized that my Read services could provide some smarter object like ViewModels instead plain DTOs. This makes me reconsider what information should be provided by the obj...
Luwian asked 28/1, 2014 at 14:25

5

Solved

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 ge...
Spermatocyte asked 1/2, 2011 at 17:23

2

Solved

I wrote some WPF application with MVVM pattern that holds a TabControl bound to collection of "TabViewModelItem". The main window XAML: <Window xmlns="http://schemas.microsoft.com/winfx...
Ddt asked 7/9, 2013 at 14:22

1

Solved

Another question I asked on here has opened a can of worms for me. Currently I have development my MVC application, with models representing my data and used scaffolding to generate my ViewControll...
Melanymelaphyre asked 29/12, 2013 at 17:55

3

I am unsure how I can get this to work. I dont know how I can create [Display(Name = "XXXX")] for my Customer properties on this ViewModel: public class CreateAccountViewModel { [Required] publi...
Salome asked 24/12, 2013 at 12:25

© 2022 - 2024 — McMap. All rights reserved.