mirror of
https://github.com/bitwarden/server
synced 2026-02-22 04:13:43 +00:00
* Adding SecretVersion table to server * making the names singular not plural for new table * removing migration * fixing migration * Adding indexes for serviceacct and orguserId * indexes for sqllite * fixing migrations * adding indexes to secretVeriosn.sql * tests * removing tests * adding GO * api repository and controller additions for SecretVersion table, as well as tests * test fix sqllite * improvements * removing comments * making files nullable safe * Justin Baurs suggested changes * claude suggestions * Claude fixes * test fixes
18 lines
813 B
C#
18 lines
813 B
C#
using Bit.Commercial.Infrastructure.EntityFramework.SecretsManager.Repositories;
|
|
using Bit.Core.SecretsManager.Repositories;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Bit.Commercial.Infrastructure.EntityFramework.SecretsManager;
|
|
|
|
public static class SecretsManagerEfServiceCollectionExtensions
|
|
{
|
|
public static void AddSecretsManagerEfRepositories(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IAccessPolicyRepository, AccessPolicyRepository>();
|
|
services.AddSingleton<ISecretRepository, SecretRepository>();
|
|
services.AddSingleton<ISecretVersionRepository, SecretVersionRepository>();
|
|
services.AddSingleton<IProjectRepository, ProjectRepository>();
|
|
services.AddSingleton<IServiceAccountRepository, ServiceAccountRepository>();
|
|
}
|
|
}
|