Define which property is your document id (primary key). Define if this property supports auto-id
Namespace: Internal.LiteDBAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic EntityBuilder<T> Id<K>(
Expression<Func<T, K>> member,
bool autoId = true
)
Parameters
- member ExpressionFuncT, K
-
- autoId Boolean (Optional)
-
Type Parameters
- K
Return Value
EntityBuilderT
See Also