| ExtensionMethodsSemanticCopyFieldsTObject Method |
Update property data with data from fromEntities if and only if the source property is null
in the original toEntity
Namespace:
SanteDB.Core.Model
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax public static TObject SemanticCopyFields<TObject>(
this TObject toEntity,
TObject[] fromEntities,
params string[] fieldNames
)
where TObject : IdentifiedData
<ExtensionAttribute>
Public Shared Function SemanticCopyFields(Of TObject As IdentifiedData) (
toEntity As TObject,
fromEntities As TObject(),
ParamArray fieldNames As String()
) As TObject
public:
[ExtensionAttribute]
generic<typename TObject>
where TObject : IdentifiedData
static TObject SemanticCopyFields(
TObject toEntity,
array<TObject>^ fromEntities,
... array<String^>^ fieldNames
)
[<ExtensionAttribute>]
static member SemanticCopyFields :
toEntity : 'TObject *
fromEntities : 'TObject[] *
fieldNames : string[] -> 'TObject when 'TObject : IdentifiedData
Parameters
- toEntity
- Type: TObject
[Missing <param name="toEntity"/> documentation for "M:SanteDB.Core.Model.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]
- fromEntities
- Type: TObject
[Missing <param name="fromEntities"/> documentation for "M:SanteDB.Core.Model.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]
- fieldNames
- Type: SystemString
[Missing <param name="fieldNames"/> documentation for "M:SanteDB.Core.Model.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]
Type Parameters
- TObject
[Missing <typeparam name="TObject"/> documentation for "M:SanteDB.Core.Model.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]
Return Value
Type:
TObject[Missing <returns> documentation for "M:SanteDB.Core.Model.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]
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