Click or drag to resize

EntityObjectDuplicateObject Method

Creates a copy of the object.

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public EntityObject DuplicateObject(
	EntityObject owner = null,
	IEnumerable<EntityObject> childObjects = null,
	Func<EntityObject, EntityObject, IDataAttribute, bool> handleAttribute = null,
	IDictionary<EntityObject, EntityObject> pairs = null,
	ObjectTransaction transaction = null
)

Parameters

owner (Optional)
Type: Aloe.SystemFrameworks.DomainEntityObject
The owner of the copy.
childObjects (Optional)
Type: System.Collections.GenericIEnumerableEntityObject
The child objects to duplicate. Can be union of several child collections or just some of the child objects.
handleAttribute (Optional)
Type: SystemFuncEntityObject, EntityObject, IDataAttribute, Boolean
A function executed for every attribute: bool handleAttribute(original, copy, attribute). It must return true if the attribute is handled.
pairs (Optional)
Type: System.Collections.GenericIDictionaryEntityObject, EntityObject
A dictionary that collects the original-copy pairs.
transaction (Optional)
Type: Aloe.SystemFrameworks.DomainObjectTransaction
Transaction to use when creating a new instance or null to use the current transaction

Return Value

Type: EntityObject
See Also