Class UserRepositoryCollection<TUserEntity>
MongoDB collection definition for User documents. Public so consumers can subclass it
to declare per-deployment indices on their own TUserEntity shape.
Register the subclass via RegisterUserRepository<TUserEntity, TCollection>().
public class UserRepositoryCollection<TUserEntity> : DiskRepositoryCollectionBase<TUserEntity>, IUserRepositoryCollection<TUserEntity>, IDiskRepositoryCollection<TUserEntity>, IDiskRepositoryCollection<TUserEntity, ObjectId>, IRepositoryCollection<TUserEntity, ObjectId>, IReadOnlyRepositoryCollection<TUserEntity, ObjectId>, IRepositoryCollection, IReadOnlyRepositoryCollection where TUserEntity : EntityBase, IUser
Type Parameters
TUserEntity
- Inheritance
-
RepositoryCollectionBaseRepositoryCollectionBase<TUserEntity, ObjectId>DiskRepositoryCollectionBase<TUserEntity, ObjectId>DiskRepositoryCollectionBase<TUserEntity>UserRepositoryCollection<TUserEntity>
- Implements
-
IUserRepositoryCollection<TUserEntity>IDiskRepositoryCollection<TUserEntity>IDiskRepositoryCollection<TUserEntity, ObjectId>IRepositoryCollection<TUserEntity, ObjectId>IReadOnlyRepositoryCollection<TUserEntity, ObjectId>IRepositoryCollectionIReadOnlyRepositoryCollection
- Inherited Members
-
DiskRepositoryCollectionBase<TUserEntity, ObjectId>.AddAsync(TUserEntity, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.TryAddAsync(TUserEntity, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.AddOrReplaceAsync(TUserEntity, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.ReplaceOneAsync(TUserEntity, OneOption<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.ReplaceOneAsync(TUserEntity, FilterDefinition<TUserEntity>, OneOption<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.UpdateOneAsync(ObjectId, UpdateDefinition<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.UpdateOneAsync(FilterDefinition<TUserEntity>, UpdateDefinition<TUserEntity>, OneOption<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.UpdateManyAsync(FilterDefinition<TUserEntity>, UpdateDefinition<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.DeleteOneAsync(ObjectId, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.DeleteOneAsync(FilterDefinition<TUserEntity>, OneOption<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.DeleteManyAsync(FilterDefinition<TUserEntity>, IClientSessionHandle)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.GetCollection()DiskRepositoryCollectionBase<TUserEntity, ObjectId>.DropCollectionAsync()DiskRepositoryCollectionBase<TUserEntity, ObjectId>.GetDirtyAsync()DiskRepositoryCollectionBase<TUserEntity, ObjectId>.GetFailedIndices()DiskRepositoryCollectionBase<TUserEntity, ObjectId>.DropEmptyAsync(IMongoCollection<TUserEntity>)DiskRepositoryCollectionBase<TUserEntity, ObjectId>.FetchSizeRepositoryCollectionBase<TUserEntity, ObjectId>._mongoDbServiceFactoryRepositoryCollectionBase<TUserEntity, ObjectId>._loggerRepositoryCollectionBase<TUserEntity, ObjectId>._databaseContextRepositoryCollectionBase<TUserEntity, ObjectId>._mongoDbServiceRepositoryCollectionBase<TUserEntity, ObjectId>.AddAsync(TUserEntity, IClientSessionHandle)RepositoryCollectionBase<TUserEntity, ObjectId>.TryAddAsync(TUserEntity, IClientSessionHandle)RepositoryCollectionBase<TUserEntity, ObjectId>.DeleteOneAsync(ObjectId, IClientSessionHandle)RepositoryCollectionBase<TUserEntity, ObjectId>.DropCollectionAsync()RepositoryCollectionBase<TUserEntity, ObjectId>.GetDirtyAsync()RepositoryCollectionBase<TUserEntity, ObjectId>.GetFailedIndices()RepositoryCollectionBase<TUserEntity, ObjectId>.InitAsync(IMongoCollection<TUserEntity>)RepositoryCollectionBase<TUserEntity, ObjectId>.ProtectedCollectionNameRepositoryCollectionBase<TUserEntity, ObjectId>.CollectionNameRepositoryCollectionBase<TUserEntity, ObjectId>.DatabasePartRepositoryCollectionBase<TUserEntity, ObjectId>.ConfigurationNameRepositoryCollectionBase<TUserEntity, ObjectId>.AutoCleanRepositoryCollectionBase<TUserEntity, ObjectId>.CleanOnStartupRepositoryCollectionBase<TUserEntity, ObjectId>.CreateCollectionStrategyRepositoryCollectionBase<TUserEntity, ObjectId>.FetchSizeRepositoryCollectionBase<TUserEntity, ObjectId>.IndicesRepositoryCollectionBase<TUserEntity, ObjectId>.CoreIndicesRepositoryCollectionBase<TUserEntity, ObjectId>.TypesRepositoryCollectionBase.ConfigurationNameRepositoryCollectionBase.ActionEvent
Constructors
UserRepositoryCollection(IMongoDbServiceFactory, ILogger<UserRepositoryCollection<TUserEntity>>, IOptions<ThargaTeamOptions>)
public UserRepositoryCollection(IMongoDbServiceFactory mongoDbServiceFactory, ILogger<UserRepositoryCollection<TUserEntity>> logger, IOptions<ThargaTeamOptions> options = null)
Parameters
mongoDbServiceFactoryIMongoDbServiceFactoryloggerILogger<UserRepositoryCollection<TUserEntity>>optionsIOptions<ThargaTeamOptions>
Properties
CollectionName
public override string CollectionName { get; }
Property Value
Indices
public override IEnumerable<CreateIndexModel<TUserEntity>> Indices { get; }
Property Value
- IEnumerable<CreateIndexModel<TUserEntity>>