Questions tagged [nested-properties]
45 questions
1
vote
1 answer
Asp.net MVC3 Compare Attribute : Error when comparing against a nested property
Getting an error when using MVC3 Compare attribute against a nested property.
Sample code is as follows:
Model and View Model :
public class Data
{
public string Input { get; set; }
}
public class DataVM
{
public Data Data { get; set; }
…

Jay
- 11
- 2
1
vote
3 answers
How To View All Child Properties in Power Shell
When querying for the properties of a Power Shell object, I want to know if the properties listed have child properties that might provide me useful info, but neither the Get-Member command nor the Select-Object -ExpandProperty parameter offer me a…

F.S.
- 71
- 1
- 4
1
vote
1 answer
Vaadin Table - AddNestedContainerProperty
public class LocationBasedRole extends AbstractEntity{
@ManyToMany(fetch=FetchType.LAZY)
private Set roles=new HashSet();
@ManyToMany(fetch=FetchType.LAZY)
private Set locations=new…

Reza P.
- 306
- 2
- 18
1
vote
1 answer
C#, LINQ a generic sort method to sort a list by object properties and nested properties
I have an entity called User in my EF Model:
public class User
{
public int UserId { get; set; }
public Branch HomeLocation{ get; set; }
public string CellPhone { get; set; }
public string UserName { get; set; }
public string…

devC
- 1,384
- 5
- 32
- 56
1
vote
1 answer
JavaScript: get & set nested attributes of an object
There are questions and answers on how to get & set nested attributes/properties on an object in JS around the net & StackOverflow as well, but none so far fit my problem, so here it is.
The code that declares/defines the object is
/**
* a dummy…

yogmk
- 161
- 10
1
vote
1 answer
C# NestedClass Expanded Property to Refresh/Invalidate Control in Design Mode
I'm trying to reproduce how Font class Nested Property is able to Invalidate() it's containing Control when the values are changed from the Properties window, without a need to lost focus on the form window.
Like if you change the Size property, the…
user2778340
1
vote
2 answers
JavaScript nested properties
If I have an object with nested properties. Is there a function that will search all properties, and the properties with values that are other objects (which also have their own properties) and so forth?
Example object:
const user = {
id: 101,…

michaelkazman
- 57
- 9
1
vote
1 answer
c# on nested property change tracking
I have a generic class with a single argument that represents an Element of a third party DLL for the purpose of serialization of objects of T kind. What I would like to do is add a 'Dirty' map to my class and lazily trigger it whenever one of my…

user3562367
- 13
- 3
1
vote
1 answer
c:set for inner properties of a bean
Is there a way to set a single property of a property in a bean?
For example, I have an Employee class as a property in my bean UserAttributeView and I want to set employeeName property from JSF using c:set tag.

javaAndBeyond
- 520
- 1
- 9
- 26
1
vote
1 answer
Nested properties with common affix
In SCSS, properties with common prefix can be described as nested properties. Thus, as in the example,
.funky{
font: 2px/3px{
family: fantasy;
size: 30em;
weight: bold;
}
}
is compiled to:
.funky{
font: 2px/3px;
font-family:…

sawa
- 165,429
- 45
- 277
- 381
1
vote
2 answers
c# Initializing Inner properties
I have two classes:
public class TmpClass
{
public TmpClass()
{
InnerClass = new InnerClass();
}
public InnerClass InnerC { get; set; }
}
public class InnerClass
{
public string Name { get; set; }
}
And is it possible…

user2083565
- 15
- 2
1
vote
2 answers
Referencing nested properties in XAML
This question may be a duplicate of Creating an instance of a nested class in XAML. This question and the related MSDN documentation are concerned with nested types. In this example, the types themselves are not nested, but the syntax seems…

bozalina
- 89
- 1
- 13
0
votes
1 answer
0
votes
2 answers
Cypress - AssertionError: expected [ { payload: { data: [Object] } } ] to have property 'TotalMessageUI_ObjectClicked'
I'm trying to verify TotalMessageUI_ObjectClicked contains a value other than NULL or 0
But I keep getting this error:
AssertionError: expected [ { payload: { data: [Object] } } ] to have property 'TotalMessageUI_ObjectClicked'
What is the best…

testerJeff
- 5
- 3
0
votes
1 answer
ASP.NET validation of model's nested properties
I'm trying to validate a model containing other objects with validation rules using the TryUpdateModel:
public class Post
{
public User User;
}
public class User : IValidatableObject
{
public string Captcha;
public…

donRumatta
- 836
- 2
- 9
- 22