Table of Contents

Class ThargaTeamOptions

Namespace
Tharga.Team.MongoDB
Assembly
Tharga.Team.MongoDB.dll
public record ThargaTeamOptions : IEquatable<ThargaTeamOptions>
Inheritance
ThargaTeamOptions
Implements
Inherited Members

Properties

TeamCollectionName

MongoDB collection name for team documents. Default is "Team".

public string TeamCollectionName { get; set; }

Property Value

string

UserCollectionName

MongoDB collection name for user documents. Default is "User".

public string UserCollectionName { get; set; }

Property Value

string

Methods

RegisterTeamRepository<TTeamEntity, TTeamMemberModel>()

public void RegisterTeamRepository<TTeamEntity, TTeamMemberModel>() where TTeamEntity : TeamEntityBase<TTeamMemberModel> where TTeamMemberModel : TeamMemberBase

Type Parameters

TTeamEntity
TTeamMemberModel

RegisterUserRepository<TUserEntity>()

Registers the User repository using the built-in UserRepositoryCollection<TUserEntity>. Use the RegisterUserRepository<TUserEntity, TCollection> overload to register a consumer subclass that declares additional per-deployment indices.

public void RegisterUserRepository<TUserEntity>() where TUserEntity : EntityBase, IUser

Type Parameters

TUserEntity

RegisterUserRepository<TUserEntity, TCollection>()

Registers the User repository with a consumer-provided collection subclass. Use this when you need to add per-deployment indices on top of the built-in unique Identity index (e.g. a unique index on a custom email field).

public void RegisterUserRepository<TUserEntity, TCollection>() where TUserEntity : EntityBase, IUser where TCollection : UserRepositoryCollection<TUserEntity>

Type Parameters

TUserEntity
TCollection