I have included my screen shots to clarify my question. When I do"Add-migration First" the Identity tables are created after I have done "Update-database" but not my Table from Models. When I look at the Migration file the Table does not get a mention. It appears I feel that I have missed some code somewhere. Any advice greatfully appreciated.
MODEL
using System.ComponentModel.DataAnnotations;
namespace ICS_Man.Models
{
public class StockPaints
{
[Key]
public int Id { get; set; }
public String PaintCode { get; set; }
}
}
ApplicationDBContext
using ICS_Man.Models;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace ICS_Man.Data;
public class ApplicationDbContext : IdentityDbContext
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) :
base(options)
{
}
public DbSet<StockPaints> StockPaints { get; set; }
}
Migration File
namespace ICS_Man.Data.Migrations
{
public partial class first : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}