26.54. Class SessionDataModelMapping

Namespace: ArmoniK.Core.Adapters.MongoDB.Table.DataModel
Assembly: ArmoniK.Core.Adapters.MongoDB.dll

Implementation of for

public class SessionDataModelMapping : IMongoDataModelMapping<SessionData>

26.54.1. Inheritance

objectSessionDataModelMapping

26.54.2. Implements

IMongoDataModelMapping<SessionData>

26.54.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

26.54.4. Properties

26.54.4.1. CollectionName

Gets the name of the MongoDB collection associated with the data model.

public string CollectionName { get; }

26.54.4.1.1. Property Value

string

26.54.5. Methods

26.54.5.1. InitializeIndexes(MongoDB)

Setup indexes for the collection Can be called multiple times

public ICollection<CreateIndexModel<SessionData>> InitializeIndexes(MongoDB options)

26.54.5.1.1. Parameters

options MongoDB

Options for MongoDB

26.54.5.1.2. Returns

ICollection<CreateIndexModel<SessionData>>

Task representing the asynchronous execution of the method

26.54.5.2. ShardCollectionAsync(IClientSessionHandle, MongoDB)

Setup sharding for the collection Can be called multiple times

public Task ShardCollectionAsync(IClientSessionHandle sessionHandle, MongoDB options)

26.54.5.2.1. Parameters

sessionHandle IClientSessionHandle

MongoDB Client session

options MongoDB

Options for MongoDB

26.54.5.2.2. Returns

Task

Task representing the asynchronous execution of the method