migrating-linq-to-sql-to-ef-core

Migrate LINQ to SQL data access layers to Entity Framework Core.

19|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-linq-to-sql-to-ef-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-linq-to-sql-to-ef-core
Source: https://github.com/microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/data/migrating-linq-to-sql-to-ef-core
Command: npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-linq-to-sql-to-ef-core

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of migrating LINQ to SQL data access layers to Entity Framework Core during .NET Framework upgrades, ensuring compatibility with modern .NET versions.

Core Features & Use Cases

  • LINQ to SQL to EF Core Migration: Converts data access layers, including DataContext to DbContext, DBML to EF Core model configuration, and stored procedure migration.
  • Use Case: Ideal for developers upgrading .NET Framework projects that rely on LINQ to SQL, ensuring a smooth transition to Entity Framework Core.

Quick Start

Run the skill to begin the migration process for your project.

Frequently Asked Questions about migrating-linq-to-sql-to-ef-core

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

FAQPage Schema
How do I migrate LINQ to SQL to Entity Framework Core during a .NET upgrade?

To migrate LINQ to SQL to Entity Framework Core, you convert DataContext to DbContext and map DBML files to EF Core model configurations. This ensures data access layers remain compatible with modern .NET versions during framework upgrades.

What is the process for converting a DBML file to an EF Core model?

Converting a DBML file to an EF Core model involves mapping the existing LINQ to SQL schema definitions to Entity Framework Core model configurations. This transitions your data access layer from DataContext to a modern DbContext structure.

Can this migration handle stored procedure migration from LINQ to SQL to EF Core?

Yes, migrating LINQ to SQL to EF Core includes stored procedure migration. The process maps existing stored procedures to the new Entity Framework Core data access layer when upgrading .NET Framework projects.

Do I need knowledge of both LINQ to SQL and Entity Framework Core to use this?

Yes, migrating LINQ to SQL to EF Core requires knowledge of both frameworks. Understanding DataContext, DbContext, and model mapping concepts is necessary to ensure a smooth transition during your .NET upgrade.

What are the limitations when migrating DataContext to DbContext for .NET Core upgrades?

When migrating DataContext to DbContext, limitations may arise from complex DBML mappings and stored procedures. Applying this to .NET Framework to .NET Core upgrades requires careful conversion of data access layers to ensure compatibility.