ef-core

Create and apply EF Core migrations for the Pomodoro Time Tracker.

Updated Nov 20, 2025
One-click install
npx skills add https://github.com/manx/PomodoroTimeTracker --skill ef-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-core
Source: https://github.com/manx/PomodoroTimeTracker/tree/main/.claude/skills/ef-core
Command: npx skills add https://github.com/manx/PomodoroTimeTracker --skill ef-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill offers expert guidance on Entity Framework Core usage for the Pomodoro Time Tracker, covering migrations, database operations, entity configuration, and repository patterns. It ensures consistent and correct data access, reducing errors and speeding up database-related development tasks.

Core Features & Use Cases

  • Migration Commands: Provides essential dotnet ef commands for creating, applying, and removing database migrations, simplifying schema evolution.
  • Current Schema Overview: Details the project's database structure, including key entities like SessionTypes, TimeEntries, Projects, Clients, and PomodoroSettings.
  • Repository Pattern: Illustrates the project's specific repository interface design, including custom methods and defined cascade delete rules, promoting clean data access.
  • Use Case: When you need to add a new field to an existing entity or create a new entity, activate this Skill to get the exact migration command, understand the current schema, and ensure your repository implementation follows project standards.

Quick Start

Using the ef-core skill, show me the command to create a new database migration named 'AddProjectStatus' for the PomodoroTimeTracker project.

Frequently Asked Questions about ef-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and apply database migrations in Entity Framework Core?

Entity Framework Core migrations evolve your database schema safely. Use `dotnet ef migrations add [MigrationName]` to generate a migration file, then `dotnet ef database update` to apply it to your database. This workflow captures schema changes and makes them version-controllable.

What's the best way to configure entities and relationships in EF Core?

Entity configuration in EF Core defines how your classes map to database tables, including relationships and constraints. Configure entities via the Fluent API or data annotations to enforce cascade delete rules, foreign keys, and constraints that match your project standards.

How do I implement the repository pattern with Entity Framework Core?

The repository pattern abstracts data access logic through interfaces and implementations. Define repository interfaces with custom methods, then implement them using EF Core's DbContext to query, insert, update, and delete data while maintaining clean separation between data access and business logic.

Can I use Entity Framework Core with SQLite for a desktop application?

Entity Framework Core fully supports SQLite as a database provider. SQLite is ideal for desktop and small-scale applications, offering file-based persistence without a separate server. Configure the EF Core context to use SQLite and run migrations to initialize your schema.

What happens when I delete a parent entity in EF Core?

Cascade delete rules determine what happens to related child records when you delete a parent entity. Configure cascade behavior through entity relationships to automatically delete, orphan, or restrict deletion of child records based on your application's data integrity requirements.

How do I remove or rollback a database migration in EF Core?

To rollback a migration, use `dotnet ef migrations remove` to delete the latest unapplied migration, or `dotnet ef database update [PreviousMigration]` to revert the database to a prior state. Always backup production databases before rollback operations.