30.51. Class AuthDataModelMapping
Namespace: ArmoniK.Core.Adapters.MongoDB.Table.DataModel.Auth
Assembly: ArmoniK.Core.Adapters.MongoDB.dll
MongoDB object mapping for certificate data
public class AuthDataModelMapping : IMongoDataModelMapping<AuthData>
30.51.1. Inheritance
30.51.2. Implements
30.51.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
30.51.4. Properties
30.51.4.1. CollectionName
Gets the name of the MongoDB collection associated with the data model.
public string CollectionName { get; }
30.51.4.1.1. Property Value
30.51.5. Methods
30.51.5.1. InitializeCollectionAsync(IClientSessionHandle, IMongoCollection<AuthData>, InitDatabase)
Insert data into the collection after its creation. Can be called multiple times
public Task InitializeCollectionAsync(IClientSessionHandle sessionHandle, IMongoCollection<AuthData> collection, InitDatabase initDatabase)
30.51.5.1.1. Parameters
sessionHandle IClientSessionHandle
MongoDB Client session
collection IMongoCollection<AuthData>
MongoDDB Collection in which to insert data
initDatabase InitDatabase
Data to insert
30.51.5.1.2. Returns
Task representing the asynchronous execution of the method
30.51.5.2. InitializeIndexes(MongoDB)
Setup indexes for the collection Can be called multiple times
public ICollection<CreateIndexModel<AuthData>> InitializeIndexes(MongoDB options)
30.51.5.2.1. Parameters
options MongoDB
Options for MongoDB
30.51.5.2.2. Returns
ICollection<CreateIndexModel<AuthData>>
Task representing the asynchronous execution of the method