ILiteDatabaseGetCollectionT(String, BsonAutoId) Method |
Get a collection using a entity class as strong typed document. If collection does not exits, create a new one.
Namespace: Internal.LiteDBAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
SyntaxILiteCollection<T> GetCollection<T>(
string name,
BsonAutoId autoId = BsonAutoId.ObjectId
)
Parameters
- name String
- Collection name (case insensitive)
- autoId BsonAutoId (Optional)
- Define autoId data type (when object contains no id field)
Type Parameters
- T
Return Value
ILiteCollectionT
See Also