Click or drag to resize

IdentifiedDataPersistenceServiceTModel, TDbModelUpdateInternalAssociationsTAssociativeTable Method

Update the internal

Namespace: SanteDB.Persistence.Data.Services.Persistence
Assembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntax
protected virtual IEnumerable<TAssociativeTable> UpdateInternalAssociations<TAssociativeTable>(
	DataContext context,
	Guid sourceKey,
	IEnumerable<TAssociativeTable> associations,
	Expression<Func<TAssociativeTable, bool>> existingExpression = null
)
where TAssociativeTable : new(), IDbAssociation

Parameters

context  DataContext
The context on which the data is to be inserted/updated
sourceKey  Guid
The source record (from which the associations point to)
associations  IEnumerableTAssociativeTable
The associations which were on the inbound record
existingExpression  ExpressionFuncTAssociativeTable, Boolean  (Optional)
By default, this uses o=>o.SourceKey == sourceKey , you can specify an alternate here to determine existing records

Type Parameters

TAssociativeTable

[Missing <typeparam name="TAssociativeTable"/> documentation for "M:SanteDB.Persistence.Data.Services.Persistence.IdentifiedDataPersistenceService`2.UpdateInternalAssociations``1(SanteDB.OrmLite.DataContext,System.Guid,System.Collections.Generic.IEnumerable{``0},System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]

Return Value

IEnumerableTAssociativeTable

[Missing <returns> documentation for "M:SanteDB.Persistence.Data.Services.Persistence.IdentifiedDataPersistenceService`2.UpdateInternalAssociations``1(SanteDB.OrmLite.DataContext,System.Guid,System.Collections.Generic.IEnumerable{``0},System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}})"]

See Also