entity-framework-6

Apply EF6 Code-First patterns to manage DB schemas and data access.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/FerranGuardia/claude-autonomous-setup --skill entity-framework-6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: entity-framework-6
Source: https://github.com/FerranGuardia/claude-autonomous-setup/tree/main/skills/backend/entity-framework-6
Command: npx skills add https://github.com/FerranGuardia/claude-autonomous-setup --skill entity-framework-6

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Entity Framework 6 Code-First patterns for .NET Framework 4.7 are provided to help .NET developers manage database schemas and data access with DbContext, migrations, and performance considerations in EF6 (NOT EF Core).

Core Features & Use Cases

  • DbContext-based modeling and migrations
  • Relationship mapping, loading strategies, and data annotations
  • Raw SQL integration and Dapper coexistence for high-performance data access
  • Mature tooling for migrations, seeding, and deployment

Quick Start

Create a DbContext subclass, enable migrations, and apply the initial migration.

Frequently Asked Questions about entity-framework-6

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

FAQPage Schema
How do I configure DbContext and enable migrations in EF6 Code-First?

EF6 Code-First configuration involves creating a DbContext subclass, enabling migrations, and applying the initial migration. This manages database schemas and data access for .NET Framework 4.7 applications.

Can I use Dapper alongside Entity Framework 6 for high-performance data access?

Yes, EF6 supports raw SQL integration and Dapper coexistence for high-performance data access. This allows you to combine EF6's schema management with Dapper's optimized query performance within the same .NET Framework project.

Does this EF6 Code-First pattern work with .NET Core projects?

No, these EF6 Code-First patterns target projects using .NET Framework 4.7 and Entity Framework 6 specifically. They do not apply to EF Core, which is the separate cross-platform entity framework version.

What are the best practices for loading strategies and relationship mapping in EF6?

EF6 best practices for performance and maintenance include optimizing relationship mapping and loading strategies. Proper configuration of data annotations and loading behaviors ensures efficient data retrieval in .NET Framework apps.

How does Entity Framework 6 handle database seeding and deployment tooling?

Entity Framework 6 provides mature tooling for database migrations, seeding, and deployment. By configuring your DbContext and applying migrations, you can automate schema creation and populate initial data during deployment.

When should I use raw SQL queries instead of standard EF6 DbContext operations?

Use raw SQL integration in EF6 when standard DbContext operations face performance bottlenecks or require complex queries. It allows direct database execution while maintaining the overall Code-First schema management structure.