using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations.Schema; namespace ApiPolo.Models { /// TokenDbContext public class TokenDbContext : DbContext { /// conf public DbSet? tok { get; set; } /// ConfigurazioniDbContext public TokenDbContext(DbContextOptions options) : base(options) { } /// OnModelCreating protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().ToTable("Token"); //modelBuilder.Entity().Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); } } }