Click or drag to resize

ExtensionMethodsSemanticCopyFieldsTObject Method

Update property data with data from fromEntities if and only if the source property is null in the original toEntity

Namespace: SanteDB
Assembly: SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.2081-alpha+0a330d5f5a5d3cb3e6e945ef530e94ac5671b49c
Syntax
public static TObject SemanticCopyFields<TObject>(
	this TObject toEntity,
	TObject[] fromEntities,
	params string[] fieldNames
)
where TObject : IdentifiedData

Parameters

toEntity  TObject

[Missing <param name="toEntity"/> documentation for "M:SanteDB.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]

fromEntities  TObject

[Missing <param name="fromEntities"/> documentation for "M:SanteDB.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]

fieldNames  String

[Missing <param name="fieldNames"/> documentation for "M:SanteDB.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]

Type Parameters

TObject

[Missing <typeparam name="TObject"/> documentation for "M:SanteDB.ExtensionMethods.SemanticCopyFields``1(``0,``0[],System.String[])"]

Return Value

TObject

[Missing <returns> documentation for "M:SanteDB.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 TObject. 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