gestion des versions :
* dossier des versions = FullString * Suppressioni de versions
This commit is contained in:
parent
41fbe54638
commit
be30ef3c25
14 changed files with 659 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using nuget_host.Data;
|
||||
|
|
@ -14,7 +15,15 @@ namespace nuget_host.Data
|
|||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
modelBuilder.Entity<PackageVersion>().HasKey(v => new
|
||||
{
|
||||
v.PackageId,
|
||||
v.FullString
|
||||
});
|
||||
}
|
||||
public DbSet<ApiKey> ApiKeys { get; set; }
|
||||
public DbSet<Package> Packages { get; set; }
|
||||
public DbSet<PackageVersion> PackageVersions { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue