| ExtensionMethodsCopyObjectDataTObject Method (TObject, TObject, Boolean, Boolean, Boolean, Boolean) |
Update property data if required
Namespace:
SanteDB
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax public static TObject CopyObjectData<TObject>(
this TObject toEntity,
TObject fromEntity,
bool overwritePopulatedWithNull = false,
bool ignoreTypeMismatch = false,
bool declaredOnly = false,
bool onlyNullFields = false
)
<ExtensionAttribute>
Public Shared Function CopyObjectData(Of TObject) (
toEntity As TObject,
fromEntity As TObject,
Optional overwritePopulatedWithNull As Boolean = false,
Optional ignoreTypeMismatch As Boolean = false,
Optional declaredOnly As Boolean = false,
Optional onlyNullFields As Boolean = false
) As TObject
public:
[ExtensionAttribute]
generic<typename TObject>
static TObject CopyObjectData(
TObject toEntity,
TObject fromEntity,
bool overwritePopulatedWithNull = false,
bool ignoreTypeMismatch = false,
bool declaredOnly = false,
bool onlyNullFields = false
)
[<ExtensionAttribute>]
static member CopyObjectData :
toEntity : 'TObject *
fromEntity : 'TObject *
?overwritePopulatedWithNull : bool *
?ignoreTypeMismatch : bool *
?declaredOnly : bool *
?onlyNullFields : bool
(* Defaults:
let _overwritePopulatedWithNull = defaultArg overwritePopulatedWithNull false
let _ignoreTypeMismatch = defaultArg ignoreTypeMismatch false
let _declaredOnly = defaultArg declaredOnly false
let _onlyNullFields = defaultArg onlyNullFields false
*)
-> 'TObject
Parameters
- toEntity
- Type: TObject
[Missing <param name="toEntity"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
- fromEntity
- Type: TObject
[Missing <param name="fromEntity"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
- overwritePopulatedWithNull (Optional)
- Type: SystemBoolean
[Missing <param name="overwritePopulatedWithNull"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
- ignoreTypeMismatch (Optional)
- Type: SystemBoolean
[Missing <param name="ignoreTypeMismatch"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
- declaredOnly (Optional)
- Type: SystemBoolean
[Missing <param name="declaredOnly"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
- onlyNullFields (Optional)
- Type: SystemBoolean
[Missing <param name="onlyNullFields"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
Type Parameters
- TObject
[Missing <typeparam name="TObject"/> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
Return Value
Type:
TObject[Missing <returns> documentation for "M:SanteDB.ExtensionMethods.CopyObjectData``1(``0,``0,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]
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