Click or drag to resize

LiteRepositoryUpsertT(T, String) Method

Insert or Update a document based on _id key. Returns true if insert entity or false if update entity

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

Parameters

entity  T
 
collectionName  String  (Optional)
 

Type Parameters

T

Return Value

Boolean

Implements

ILiteRepositoryUpsertT(T, String)
See Also