Click or drag to resize

EntityBuilderTIdK Method

Define which property is your document id (primary key). Define if this property supports auto-id

Namespace: Internal.LiteDB
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public 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