1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-09 03:43:51 -05:00

Split out repositories to Infrastructure.Dapper / EntityFramework (#1759)

This commit is contained in:
Oscar Hinton
2022-01-11 10:40:51 +01:00
committed by GitHub
parent e2c6fc81f4
commit e4a10aae27
536 changed files with 1629 additions and 1589 deletions

View File

@ -7,12 +7,12 @@ using System.Security.Claims;
using System.Text.Json;
using System.Threading.Tasks;
using Bit.Core.Context;
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Identity;
using Bit.Core.Models;
using Bit.Core.Models.Api;
using Bit.Core.Models.Data;
using Bit.Core.Models.Table;
using Bit.Core.Repositories;
using Bit.Core.Services;
using Bit.Core.Settings;

View File

@ -5,9 +5,9 @@ using System.Security.Claims;
using System.Text.Json;
using System.Threading.Tasks;
using Bit.Core.Context;
using Bit.Core.Entities;
using Bit.Core.Identity;
using Bit.Core.Models.Data;
using Bit.Core.Models.Table;
using Bit.Core.Repositories;
using Bit.Core.Services;
using Bit.Core.Settings;

View File

@ -4,6 +4,7 @@ using System.Threading.Tasks;
using Bit.Core.Repositories;
using IdentityServer4.Models;
using IdentityServer4.Stores;
using Grant = Bit.Core.Entities.Grant;
namespace Bit.Core.IdentityServer
{
@ -53,9 +54,9 @@ namespace Bit.Core.IdentityServer
await _grantRepository.SaveAsync(grant);
}
private Models.Table.Grant ToGrant(PersistedGrant pGrant)
private Grant ToGrant(PersistedGrant pGrant)
{
return new Models.Table.Grant
return new Grant
{
Key = pGrant.Key,
Type = pGrant.Type,
@ -70,7 +71,7 @@ namespace Bit.Core.IdentityServer
};
}
private PersistedGrant ToPersistedGrant(Models.Table.Grant grant)
private PersistedGrant ToPersistedGrant(Grant grant)
{
return new PersistedGrant
{

View File

@ -2,8 +2,8 @@
using System.Security.Claims;
using System.Threading.Tasks;
using Bit.Core.Context;
using Bit.Core.Entities;
using Bit.Core.Identity;
using Bit.Core.Models.Table;
using Bit.Core.Repositories;
using Bit.Core.Services;
using Bit.Core.Settings;