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
Syntaxpublic 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
<ExtensionAttribute>
Public Shared Function Duplicate(Of T As EntityObject) (
obj As T,
Optional owner As EntityObject = Nothing,
Optional childObjects As IEnumerable(Of EntityObject) = Nothing,
Optional handleAttribute As Func(Of EntityObject, EntityObject, IDataAttribute, Boolean) = Nothing,
Optional pairs As IDictionary(Of EntityObject, EntityObject) = Nothing
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : EntityObject
static T Duplicate(
T obj,
EntityObject^ owner = nullptr,
IEnumerable<EntityObject^>^ childObjects = nullptr,
Func<EntityObject^, EntityObject^, IDataAttribute^, bool>^ handleAttribute = nullptr,
IDictionary<EntityObject^, EntityObject^>^ pairs = nullptr
)
[<ExtensionAttribute>]
static member Duplicate :
obj : 'T *
?owner : EntityObject *
?childObjects : IEnumerable<EntityObject> *
?handleAttribute : Func<EntityObject, EntityObject, IDataAttribute, bool> *
?pairs : IDictionary<EntityObject, EntityObject>
(* Defaults:
let _owner = defaultArg owner null
let _childObjects = defaultArg childObjects null
let _handleAttribute = defaultArg handleAttribute null
let _pairs = defaultArg pairs null
*)
-> 'T when '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:
TUsage 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