---
title: "Discussion on \"Entity Framework Core - Migration\" | Hashnode"
description: "Discussion on \"Entity Framework Core - Migration\". 1. How Migration Generation Works (The Internals)\nMany developers believe Add-Migration compares your code to the database. It does not. It compares your code to the Model Snapshot.\nThe \"Diff\" Mechanism\nWhen you run Add-Migration <Name>, EF Core perf..."
url: "https://hashnode.com/posts/entity-framework-core-migration/694adb8e9bcfe8837798a801"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Entity Framework Core - Migration](https://eform.hashnode.dev/entity-framework-core-migration?utm_source=hashnode&utm_medium=feed)

1\. How Migration Generation Works (The Internals) Many developers believe Add-Migration compares your code to the database. It does not. It compares your code to the Model Snapshot. The "Diff" Mechanism When you run Add-Migration <Name>, EF Core perf...

Dec 23, 2025 · 6 min read · eform.hashnode.dev  
Read the article

-   [#efcore](https://hashnode.com/tag/efcore)
-   [#migration](https://hashnode.com/tag/migration)
-   [#ef-core-migrations](https://hashnode.com/tag/ef-core-migrations)

## Written by

[Ashifur Rahaman](https://hashnode.com/@ashif-arsb)

@ashif-arsb

  
[View profile](https://hashnode.com/@ashif-arsb)

Be happy and shine

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
