One-click install
npx skills add https://github.com/vip32/TaskFlow --skill entity-framework-vip32
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: entity-framework
Source: https://github.com/vip32/TaskFlow/tree/main/.agents/skills/entity-framework
Command: npx skills add https://github.com/vip32/TaskFlow --skill entity-framework-vip32

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines database interactions for .NET applications by handling Entity Framework Core setup, migrations, and repository patterns, ensuring robust and maintainable data access.

Core Features & Use Cases

  • Database Access: Provides generic and specialized repositories for CRUD operations.
  • Migrations: Facilitates the creation and application of database schema changes.
  • Soft Deletes: Implements soft delete functionality using query filters.
  • Use Case: When developing a new feature that requires storing user preferences, use this Skill to define the entity, create a migration for the new table, and implement a repository to save and retrieve preferences.

Quick Start

Use the entity-framework skill to create a new migration named 'AddUserProfile' for the wallet core project.

Frequently Asked Questions about entity-framework

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

FAQPage Schema
How do I apply EF Core migrations programmatically in a .NET application?

Apply EF Core migrations programmatically by configuring DbContext creation and invoking migration commands within your .NET application startup. This ensures database schema changes are applied automatically without manual CLI intervention.

How does Entity Framework Core handle soft deletes with query filters?

Entity Framework Core handles soft deletes by applying global query filters to your DbContext configuration. This automatically excludes logically deleted records from query results while keeping the data physically present in the database.

Can I use EF Core with PostgreSQL JSONB columns for storing user preferences?

Yes, EF Core supports PostgreSQL JSONB column usage by mapping entity properties to JSONB fields. This allows you to store and query complex objects like user preferences directly within a single database column.

What is the best way to perform bulk updates in Entity Framework Core?

The best way to perform bulk updates in Entity Framework Core is using ExecuteUpdateAsync. This method executes efficient bulk data manipulation operations directly against the database without loading entities into memory.

How do I structure database access using the repository pattern with EF Core?

Structure database access using the repository pattern with EF Core by creating generic and specialized repositories for CRUD operations. This abstraction manages DbContext creation and centralizes data access logic for better maintainability.

Does Entity Framework Core support creating migrations for new feature tables?

Yes, Entity Framework Core supports creating migrations for new feature tables. You can define an entity class and generate a migration to create the corresponding table schema for storing data like user profiles or preferences.