ILiteRepositoryUpsertT(T, String) Method |
Insert or Update a document based on _id key. Returns true if insert entity or false if update entity
Namespace: Internal.LiteDBAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxbool Upsert<T>(
T entity,
string collectionName = null
)
Parameters
- entity T
-
- collectionName String (Optional)
-
Type Parameters
- T
Return Value
Boolean
See Also