Click or drag to resize

ILiteRepositoryUpsertT(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#
int Upsert<T>(
	IEnumerable<T> entities,
	string collectionName = null
)

Parameters

entities  IEnumerableT
 
collectionName  String  (Optional)
 

Type Parameters

T

Return Value

Int32
See Also