Click or drag to resize

LiteRepositoryEnsureIndexT, K(String, Expression, Void, FuncT, K) Method


Namespace: NeoAxis.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public bool EnsureIndex<T, K>(
	string name,
	Expression keySelector,
	void unique = false,
	Func<T, K> collectionName = null
)

Parameters

name  String
 
keySelector  ExpressionTDelegate
 
unique  Void  (Optional)
 
collectionName  FuncT, K  (Optional)
 

Type Parameters

T
K

Return Value

Boolean

Implements

ILiteRepositoryEnsureIndexT, K(String, ExpressionTDelegate, Void, FuncT, K)
See Also