Questions tagged [object-graph]
90 questions
2
votes
0 answers
Build nested or hierarchical object graphs in C#
I have an object hierarchy that can be represented simplistically like:
public class ChannelEntity
{
... public properties ....
public FramesetEntity Frameset { get; set; }
}
public class FramesetEntity
{
... public properties ....
…

koder
- 887
- 9
- 29
2
votes
1 answer
Java Serialization of referenced objects is "losing values"?
Good day,
I am having an interesting problem that I cannot understand. I have a class called "HomeScreenManager" which maintains a LinkedList called chat. The HomeScreenManager instance lives on the server and is in charge of keeping track…

Matthew
- 3,886
- 7
- 47
- 84
1
vote
2 answers
Constructing a navigation path between two objects
Given two .NET objects (a root and a leaf) in an arbitrary object graph (linked by properties and collections), is there an existing API or example to construct a path (something like a WPF property binding path, or XML XPath) to get from one to the…

Miral
- 12,637
- 4
- 53
- 93
1
vote
1 answer
FluentNhibernate, retrieve partial Object Graph
So I will call a repository to retrieve the root object of a complex object graph, using FluentNHibernate. But for some sub-level objects I don't want to retrieve all elements, but only those where a date parameter equals certain condition. In below…

bretddog
- 5,411
- 11
- 63
- 111
1
vote
1 answer
How to convert an entire object graph to ExpandoObject?
I have this object hierarchy/graph:
Person:
(Name,string)
(Age,int?)
(Guid,Guid?)
(Interests,List)
Interest:
(Name,string)
(IsProfession,bool?)
(RequiredSkills,List)
Skill:
(Title,string)
(HoursToAccomplish,int?)
So,…

the aggressive
- 11
- 2
1
vote
2 answers
Is extending UIViewController to access the app delegate an antipattern?
I'm using an API that recommends keeping its client in the app delegate and accessing it through there. If I extended UIViewController to make it easier to access the app delegate, is this any way an antipattern?
extension UIViewController {
var…

lurning too koad
- 2,698
- 1
- 17
- 47
1
vote
1 answer
How does Graph Engine "fan out search" work?
I'm looking at Graph Engine (not to be confused with MSFT AD Graph), but I'm have questions about distributed "fanout search".
From what I can tell
Objects are saved in a distributed manner across N servers.
This assignment of N servers must…

makerofthings7
- 60,103
- 53
- 215
- 448
1
vote
2 answers
.Net templating engine with object graph output, not string
I would like to know if there's any templating engine that is used for object graph creation? There are many to create HTML or other string resulting content. But I would like a templating engine that spits out objects. So to speak a preprocessor.
I…

Robert Koritnik
- 103,639
- 52
- 277
- 404
1
vote
1 answer
Entity Framework eager loading nested object graph, errors out to invalid column name
Guess, I am missing to notify a navigation property to EF while eager loading nested graph. Please let me know what am I missing ?.
My simplified Object graph
Product (ProductId, IEnumerable, ProductStatusId, ProductStatus)
ProductStatus…

Vijay Anand
- 11
- 2
1
vote
1 answer
Linq query for filter object graph
I have following entitiy relationships. I want to filter resources by passing Project Id.
Project Class
public class Project : EntityBase
{
public Project()
{
this.Tasks = new HashSet();
}
[Key]
public Guid GUID {…

Jayakaran Theivendramoorthy
- 1,186
- 1
- 14
- 23
1
vote
0 answers
Scoped singleton for fragment in Android
I have couple of (nested) fragments, for which I'd like to persist arbitrary data. I don't want to use regular singletons, because then the memory would never be freed, even after leaving particular part of the app.
I've been researching Dagger and…

wasyl
- 3,421
- 3
- 27
- 36
1
vote
1 answer
Hazelcast Complex Object Model in Cache
I am looking to put a complex model into Hazelcast to use it as the data tier of an application with MapStore implementations rendering the actual objects to the database. So for example, lets say we have the following noxiously common model where I…

Robert Simmons Jr.
- 1,182
- 8
- 21
1
vote
1 answer
Saving EF entity without saving navigation properties
Is there an elegant way to save an entity without saving it's navigation properties?
I send an entity graph from web page to a Web API service. Since client doesn't have access to navigation properties, it sends data without those properties back to…

Nikola Radosavljević
- 6,871
- 32
- 44
1
vote
2 answers
Object graphs and web services
I'm really new to web services and need to create a webservice that can deal with object graphs. My canonical example would be a CRM web service that given a customer number would return an "object" of type Company with a collection property of…

Fredrik Tonn
- 113
- 10
1
vote
1 answer
JavaScript deep copy of an object graph
I need a function which makes a deep copy of an object in JavaScript. Each object is part of a larger graph (thus the need for a deep copy function). For example,
//Node "class" with references to its parent and children
var MyNode = (function () {
…

MgSam
- 12,139
- 19
- 64
- 95