Click or drag to resize

LiteRepositoryUpsertT(IEnumerableT, String) Method

Insert or Update all documents based on _id key. Returns entity count that was inserted

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public int Upsert<T>(
	IEnumerable<T> entities,
	string collectionName = null
)

Parameters

entities  IEnumerableT
 
collectionName  String  (Optional)
 

Type Parameters

T

Return Value

Int32

Implements

ILiteRepositoryUpsertT(IEnumerableT, String)
See Also