22.52. Class RoleDataModelMapping
Namespace: ArmoniK.Core.Adapters.MongoDB.Table.DataModel.Auth
Assembly: ArmoniK.Core.Adapters.MongoDB.dll
MongoDB mapping of the Role document
public class RoleDataModelMapping : IMongoDataModelMapping<RoleData>
22.52.1. Inheritance
22.52.2. Implements
22.52.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
22.52.4. Properties
22.52.4.1. CollectionName
Gets the name of the MongoDB collection associated with the data model.
public string CollectionName { get; }
22.52.4.1.1. Property Value
22.52.5. Methods
22.52.5.1. InitializeCollectionAsync(IClientSessionHandle, IMongoCollection<RoleData>, InitDatabase)
Insert data into the collection after its creation. Can be called multiple times
public Task InitializeCollectionAsync(IClientSessionHandle sessionHandle, IMongoCollection<RoleData> collection, InitDatabase initDatabase)
22.52.5.1.1. Parameters
sessionHandle IClientSessionHandle
MongoDB Client session
collection IMongoCollection<RoleData>
MongoDDB Collection in which to insert data
initDatabase InitDatabase
Data to insert
22.52.5.1.2. Returns
Task representing the asynchronous execution of the method
22.52.5.2. InitializeIndexesAsync(IClientSessionHandle, IMongoCollection<RoleData>, MongoDB)
Setup indexes for the collection Can be called multiple times
public Task InitializeIndexesAsync(IClientSessionHandle sessionHandle, IMongoCollection<RoleData> collection, MongoDB options)
22.52.5.2.1. Parameters
sessionHandle IClientSessionHandle
MongoDB Client session
collection IMongoCollection<RoleData>
MongoDDB Collection in which to insert data
options MongoDB
Options for MongoDB
22.52.5.2.2. Returns
Task representing the asynchronous execution of the method