aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-15 21:22:25 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-15 21:22:25 +0200
commit48d2e24da834bce1c7b80c90542cfb39ef8fd3be (patch)
tree803a188eb5dfe9fac67e4d5f0593147b35da86de /src
parent40095b64647a3d087bb0d59854ffe00516513109 (diff)
downloadDevHive-48d2e24da834bce1c7b80c90542cfb39ef8fd3be.tar
DevHive-48d2e24da834bce1c7b80c90542cfb39ef8fd3be.tar.gz
DevHive-48d2e24da834bce1c7b80c90542cfb39ef8fd3be.zip
Added a package, that prevented migrations to happen
Diffstat (limited to 'src')
-rw-r--r--src/DevHive.Data/DevHive.Data.csproj5
-rw-r--r--src/DevHive.Data/Repositories/DevHiveContext.cs2
-rw-r--r--src/DevHive.Services/DevHive.Services.csproj4
3 files changed, 10 insertions, 1 deletions
diff --git a/src/DevHive.Data/DevHive.Data.csproj b/src/DevHive.Data/DevHive.Data.csproj
index 0becbe2..d7d59c0 100644
--- a/src/DevHive.Data/DevHive.Data.csproj
+++ b/src/DevHive.Data/DevHive.Data.csproj
@@ -9,6 +9,11 @@
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.0" />
+
+ <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.1">
+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+ <PrivateAssets>all</PrivateAssets>
+ </PackageReference>
</ItemGroup>
</Project>
diff --git a/src/DevHive.Data/Repositories/DevHiveContext.cs b/src/DevHive.Data/Repositories/DevHiveContext.cs
index be5cc56..dad4672 100644
--- a/src/DevHive.Data/Repositories/DevHiveContext.cs
+++ b/src/DevHive.Data/Repositories/DevHiveContext.cs
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore;
namespace DevHive.Data.Repositories
{
- public class DevHiveContext : IdentityDbContext<User, IdentityRole<Guid>, Guid>
+ public class DevHiveContext : IdentityDbContext<User, Role<Guid>, Guid>
{
public DevHiveContext(DbContextOptions options)
: base(options) { }
diff --git a/src/DevHive.Services/DevHive.Services.csproj b/src/DevHive.Services/DevHive.Services.csproj
index 4895e94..280610d 100644
--- a/src/DevHive.Services/DevHive.Services.csproj
+++ b/src/DevHive.Services/DevHive.Services.csproj
@@ -5,6 +5,10 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
+ <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.1">
+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+ <PrivateAssets>all</PrivateAssets>
+ </PackageReference>
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.8.0" />
<ProjectReference Include="..\DevHive.Data\DevHive.Data.csproj" />