diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-15 21:22:25 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2020-12-15 21:22:25 +0200 |
| commit | 48d2e24da834bce1c7b80c90542cfb39ef8fd3be (patch) | |
| tree | 803a188eb5dfe9fac67e4d5f0593147b35da86de /src/DevHive.Data | |
| parent | 40095b64647a3d087bb0d59854ffe00516513109 (diff) | |
| download | DevHive-48d2e24da834bce1c7b80c90542cfb39ef8fd3be.tar DevHive-48d2e24da834bce1c7b80c90542cfb39ef8fd3be.tar.gz DevHive-48d2e24da834bce1c7b80c90542cfb39ef8fd3be.zip | |
Added a package, that prevented migrations to happen
Diffstat (limited to 'src/DevHive.Data')
| -rw-r--r-- | src/DevHive.Data/DevHive.Data.csproj | 5 | ||||
| -rw-r--r-- | src/DevHive.Data/Repositories/DevHiveContext.cs | 2 |
2 files changed, 6 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) { } |
