 | IdentifiedDataPersistenceServiceTModel, TDbModelUpdateInternalAssociationsTAssociativeTable Method |
Update the internal
Namespace: SanteDB.Persistence.Data.Services.PersistenceAssembly: SanteDB.Persistence.Data (in SanteDB.Persistence.Data.dll) Version: 3.0.2081-alpha+be3dca7062b437ed047a057127f85f12119224b9
Syntaxprotected virtual IEnumerable<TAssociativeTable> UpdateInternalAssociations<TAssociativeTable>(
DataContext context,
Guid sourceKey,
IEnumerable<TAssociativeTable> associations,
Expression<Func<TAssociativeTable, bool>> existingExpression = null
)
where TAssociativeTable : new(), IDbAssociation
Protected Overridable Function UpdateInternalAssociations(Of TAssociativeTable As {New, IDbAssociation}) (
context As DataContext,
sourceKey As Guid,
associations As IEnumerable(Of TAssociativeTable),
Optional existingExpression As Expression(Of Func(Of TAssociativeTable, Boolean)) = Nothing
) As IEnumerable(Of TAssociativeTable)protected:
generic<typename TAssociativeTable>
where TAssociativeTable : gcnew(), IDbAssociation
virtual IEnumerable<TAssociativeTable>^ UpdateInternalAssociations(
DataContext^ context,
Guid sourceKey,
IEnumerable<TAssociativeTable>^ associations,
Expression<Func<TAssociativeTable, bool>^>^ existingExpression = nullptr
)
abstract UpdateInternalAssociations :
context : DataContext *
sourceKey : Guid *
associations : IEnumerable<'TAssociativeTable> *
?existingExpression : Expression<Func<'TAssociativeTable, bool>>
(* Defaults:
let _existingExpression = defaultArg existingExpression null
*)
-> IEnumerable<'TAssociativeTable> when 'TAssociativeTable : new() and IDbAssociation
override UpdateInternalAssociations :
context : DataContext *
sourceKey : Guid *
associations : IEnumerable<'TAssociativeTable> *
?existingExpression : Expression<Func<'TAssociativeTable, bool>>
(* Defaults:
let _existingExpression = defaultArg existingExpression null
*)
-> IEnumerable<'TAssociativeTable> when 'TAssociativeTable : new() and IDbAssociationParameters
- 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