A
A
Artur Nurullin2015-07-18 13:48:32
.NET
Artur Nurullin, 2015-07-18 13:48:32

Are there patterns for updating an object graph?

Good afternoon!
The question arose of updating the entity graph. Example:

public class Animal 
{
       public string Title  {get;set;}

       public string Description {get;set;}

       public ICollection<DateOfWak> DatesOfWalk {get;set;}
}

public class DateOfWalk 
{

     public string Title {get;set;}
      
     public DateTime Date {get;set;}

     public ICollection<Place> Places {get;set;}
}

public class Place 
{
     public string Title {get;set;}
}

The WCF service comes with a collection of Animal objects similar to the one above, the nesting of collections is not more than 2, but the above is a simplified example.
So the question is - does anyone know patterns or ways to update the object graph, while signaling changes like changed, removed, added that would be quite simple to understand and in terms of speed (but not necessarily), using reflection ( System.Reflection) or expression trees System.Linq.Expressionsalso considered as an option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2015-07-19
@asdz

Didn't use - GraphDiff

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question