Click or drag to resize

EntityObjectExtensionsDuplicateT Method (T, EntityObject, IEnumerableEntityObject, FuncEntityObject, EntityObject, IDataAttribute, Boolean, IDictionaryEntityObject, EntityObject)

Duplicates the specified object.

Namespace:  Aloe.SystemFrameworks.Domain
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static T Duplicate<T>(
	this T obj,
	EntityObject owner = null,
	IEnumerable<EntityObject> childObjects = null,
	Func<EntityObject, EntityObject, IDataAttribute, bool> handleAttribute = null,
	IDictionary<EntityObject, EntityObject> pairs = null
)
where T : EntityObject

Parameters

obj
Type: T
The object.
owner (Optional)
Type: Aloe.SystemFrameworks.DomainEntityObject
The owner.
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
The handle attribute.
pairs (Optional)
Type: System.Collections.GenericIDictionaryEntityObject, EntityObject
The pairs.

Type Parameters

T

Return Value

Type: T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also