CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Core.GraphMerger Class Reference

Implements behavior to merge one object graph into a clone of itself (typically post-serialization). More...

Inheritance diagram for Csla.Core.GraphMerger:
Csla.Server.ObjectFactory

Public Member Functions

void MergeGraph (IEditableBusinessObject target, IEditableBusinessObject source)
 Merges state from source graph into target graph. More...
 
void MergeBusinessListGraph< T, C > (T target, T source)
 Merges state from source graph into target graph. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Csla.Server.ObjectFactory
void SetIsReadOnly (object obj, bool value)
 Sets the IsReadOnly property on the specified object, if possible. More...
 
void CheckRules (object obj)
 Calls the ValidationRules.CheckRules() method on the specified object, if possible. More...
 
void MarkOld (object obj)
 Calls the MarkOld method on the specified object, if possible. More...
 
void MarkNew (object obj)
 Calls the MarkNew method on the specified object, if possible. More...
 
void MarkAsChild (object obj)
 Calls the MarkAsChild method on the specified object, if possible. More...
 
void LoadProperty< P > (object obj, PropertyInfo< P > propertyInfo, P newValue)
 Loads a property's managed field with the supplied value. More...
 
void LoadProperty (object obj, IPropertyInfo propertyInfo, object newValue)
 Loads a property's managed field with the supplied value. More...
 
ReadProperty< P > (object obj, PropertyInfo< P > propertyInfo)
 Reads a property's managed field value. More...
 
object ReadProperty (object obj, IPropertyInfo propertyInfo)
 Reads a property's managed field value. More...
 
IDisposable BypassPropertyChecks (Csla.Core.BusinessBase businessObject)
 By wrapping this property inside Using block you can set property values on businessObject business object without raising PropertyChanged events and checking user rights. More...
 
bool FieldExists (object obj, Csla.Core.IPropertyInfo property)
 Gets a value indicating whether a managed field exists for the specified property. More...
 
Csla.Core.MobileList< C > GetDeletedList< C > (object obj)
 Gets the list of deleted items from an editable collection. More...
 

Detailed Description

Implements behavior to merge one object graph into a clone of itself (typically post-serialization).

Definition at line 19 of file GraphMerger.cs.

Member Function Documentation

◆ MergeBusinessListGraph< T, C >()

void Csla.Core.GraphMerger.MergeBusinessListGraph< T, C > ( target,
source 
)

Merges state from source graph into target graph.

Parameters
targetTarget of merge.
sourceSource for merge.
Type Constraints
T :BusinessListBase 
T :T 
T :C 
C :Core.IEditableBusinessObject 

Definition at line 120 of file GraphMerger.cs.

◆ MergeGraph()

void Csla.Core.GraphMerger.MergeGraph ( IEditableBusinessObject  target,
IEditableBusinessObject  source 
)

Merges state from source graph into target graph.

Parameters
targetTarget of merge.
sourceSource for merge.

Definition at line 26 of file GraphMerger.cs.