diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/DevHive.Data/DevHive.Data.csproj | 5 | ||||
| -rw-r--r-- | src/DevHive.Data/Repositories/DevHiveContext.cs | 2 | ||||
| -rw-r--r-- | src/DevHive.Services/DevHive.Services.csproj | 4 |
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" />
|
