CSLA.NET 6.0.0
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

 GraphMerger (ApplicationContext applicationContext)
 Creates an instance of the type. More...
 
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...
 
void MergeBusinessBindingListGraph< T, C > (T target, T source)
 Merges state from source graph into target graph. More...
 
- Public Member Functions inherited from Csla.Server.ObjectFactory
 ObjectFactory (ApplicationContext applicationContext)
 Creates an instance of the type. 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...
 
- Properties inherited from Csla.Server.ObjectFactory
ApplicationContext ApplicationContext [getset]
 Gets a reference to the current ApplicationContext. 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.

Constructor & Destructor Documentation

◆ GraphMerger()

Csla.Core.GraphMerger.GraphMerger ( ApplicationContext  applicationContext)

Creates an instance of the type.

Parameters
applicationContext

Definition at line 25 of file GraphMerger.cs.

Member Function Documentation

◆ MergeBusinessBindingListGraph< T, C >()

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

Merges state from source graph into target graph.

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

Definition at line 188 of file GraphMerger.cs.

◆ 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 158 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 33 of file GraphMerger.cs.