LiteRepositoryEnsureIndexT, K(String, Expression, Void, FuncT, K) Method |
Namespace: NeoAxis.LiteDBAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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
BooleanImplements
ILiteRepositoryEnsureIndexT, K(String, ExpressionTDelegate, Void, FuncT, K)
See Also