Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 3f9e2b7

Browse files
committed
Breaking dependency from second JpContext
1 parent 323814c commit 3f9e2b7

13 files changed

Lines changed: 174 additions & 108 deletions

File tree

src/Backend/Jp.Infra.CrossCutting.IdentityServer/Context/IdentityServerContext.cs

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/Backend/Jp.Infra.CrossCutting.IdentityServer/Jp.Infra.CrossCutting.IdentityServer.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@
2626
<ProjectReference Include="..\Jp.Infra.CrossCutting.Identity\Jp.Infra.CrossCutting.Identity.csproj" />
2727
</ItemGroup>
2828

29+
30+
<ItemGroup>
31+
<Folder Include="Context\" />
32+
</ItemGroup>
33+
2934
</Project>

src/Backend/Jp.Infra.Migrations.MySql.IdentityServer/Configuration/IdentityServerSqlConfig.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System;
2-
using System.Reflection;
3-
using Jp.Infra.CrossCutting.IdentityServer.Context;
4-
using Microsoft.EntityFrameworkCore;
1+
using Microsoft.EntityFrameworkCore;
52
using Microsoft.Extensions.Configuration;
63
using Microsoft.Extensions.DependencyInjection;
74
using Microsoft.Extensions.Logging;
5+
using System;
6+
using System.Reflection;
7+
using Jp.Infra.Data.Context;
88

99
namespace Jp.Infra.Migrations.MySql.IdentityServer.Configuration
1010
{
@@ -34,7 +34,7 @@ public static IIdentityServerBuilder UseIdentityServerMySqlDatabase(this IIdenti
3434
//options.TokenCleanupInterval = 15; // frequency in seconds to cleanup stale grants. 15 is useful during debugging
3535
});
3636

37-
37+
3838

3939
return builder;
4040
}

src/Backend/Jp.Infra.Migrations.MySql.IdentityServer/Jp.Infra.Migrations.MySql.IdentityServer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<ItemGroup>
1717
<ProjectReference Include="..\Jp.Infra.CrossCutting.IdentityServer\Jp.Infra.CrossCutting.IdentityServer.csproj" />
18+
<ProjectReference Include="..\Jp.Infra.Data\Jp.Infra.Data.csproj" />
1819
</ItemGroup>
1920

2021
</Project>

src/Backend/Jp.Infra.Migrations.MySql.IdentityServer/Migrations/IdentityServer/20180905194210_Initial.Designer.cs

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Backend/Jp.Infra.Migrations.MySql.IdentityServer/Migrations/IdentityServer/IdentityServerContextModelSnapshot.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// <auto-generated />
2-
using System;
3-
using Jp.Infra.CrossCutting.IdentityServer.Context;
42
using Microsoft.EntityFrameworkCore;
53
using Microsoft.EntityFrameworkCore.Infrastructure;
6-
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
4+
using System;
5+
using Jp.Infra.Data.Context;
76

87
namespace Jp.Infra.Migrations.MySql.IdentityServer.Migrations.IdentityServer
98
{

src/Backend/Jp.Infra.Migrations.Sql.IdentityServer/Configuration/IdentityServerSqlConfig.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System;
2-
using System.Reflection;
3-
using Jp.Infra.CrossCutting.IdentityServer.Context;
1+
using Jp.Infra.Data.Context;
42
using Microsoft.EntityFrameworkCore;
53
using Microsoft.Extensions.Configuration;
64
using Microsoft.Extensions.DependencyInjection;
75
using Microsoft.Extensions.Logging;
6+
using System;
7+
using System.Reflection;
88

99
namespace Jp.Infra.Migrations.Sql.IdentityServer.Configuration
1010
{
@@ -34,7 +34,7 @@ public static IIdentityServerBuilder UseIdentityServerSqlDatabase(this IIdentity
3434
options.TokenCleanupInterval = 15; // frequency in seconds to cleanup stale grants. 15 is useful during debugging
3535
});
3636

37-
37+
3838

3939
return builder;
4040
}

src/Backend/Jp.Infra.Migrations.Sql.IdentityServer/Jp.Infra.Migrations.Sql.IdentityServer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<ItemGroup>
1313
<ProjectReference Include="..\Jp.Infra.CrossCutting.IdentityServer\Jp.Infra.CrossCutting.IdentityServer.csproj" />
1414
<ProjectReference Include="..\Jp.Infra.CrossCutting.Identity\Jp.Infra.CrossCutting.Identity.csproj" />
15+
<ProjectReference Include="..\Jp.Infra.Data\Jp.Infra.Data.csproj" />
1516
</ItemGroup>
1617

1718
</Project>

src/Backend/Jp.Infra.Migrations.Sql.IdentityServer/Migrations/IdentityServer/20180901233720_Initial.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Backend/Jp.Infra.Migrations.Sql.IdentityServer/Migrations/IdentityServer/IdentityServerContextModelSnapshot.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// <auto-generated />
22

3-
using System;
4-
using Jp.Infra.CrossCutting.IdentityServer.Context;
53
using Microsoft.EntityFrameworkCore;
64
using Microsoft.EntityFrameworkCore.Infrastructure;
75
using Microsoft.EntityFrameworkCore.Metadata;
6+
using System;
7+
using Jp.Infra.Data.Context;
88

99
namespace Jp.Infra.Migrations.Sql.Migrations.IdentityServer
1010
{

0 commit comments

Comments
 (0)