Loading...
Loading...
Creates an EF Core entity + runs the migration that creates its table in Postgres. CRUD drill Day 1 step 5. Trigger: 'day1 step5', 'create entity/table for up-api'. Use the entity name and columns exactly as user specifies — do not suggest or add columns.
npx skill4agent add softinter-chiangrai/up-ai-skill-training d1-05-entity-migrationProductOrderUserColumnName:TypeName:string, Price:decimal, Stock:intup-api/Entities/<Entity>.cspublic class <Entity>
{
public int Id { get; set; }
// one property per given column, e.g.:
// public string Name { get; set; } = string.Empty;
// public decimal Price { get; set; }
}AppDbContextpublic DbSet<<Entity>> <Entity>s => Set<<Entity>>();cd up-api
dotnet ef migrations add Init<Entity>
dotnet ef database updatelocalhost:5432\dtpsqldocker exec