question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrations: Operations for annotation changes on model and entity type

See original GitHub issue

EF7 allows adding provider-specific traits to various entities - SqlServer has Clustered indices for example.

Does the migrations model differ handle alterations in such provider-specific traits, e.g. if an index becomes Clustered? I have no idea if this kind of change is actually supported in SqlServer, but I definitely have some examples of PostgreSQL-specific traits that can be altered (e.g. a table’s tablespace).

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bricelamcommented, Sep 2, 2016

Note: The old annotations are now also available for AlterColumnOperation.

0reactions
bricelamcommented, Aug 30, 2016

FYI, @roji, @AndriySvyryd is going to add AlterDatabase and AlterTable operations that will be generated when annotations on the model and entity types are changed.

I’m going to re-open this issue since it’s a new feature that just happens will get implemented as part of #6405.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Migrations Operations - EF Core
Managing custom and raw SQL migrations for database schema management with Entity Framework Core.
Read more >
Entity Framework Core Migrations
The migrations feature in Entity Framework Core enables you to make changes to your model and then propagate those changes to your database ......
Read more >
Do not map annotation to database during migrations
When building a model I use this: MyAnnotation value = GetSomeComplexObjectToUseAsAnnotation(); entityTypeBuilder .Property( ...
Read more >
How to customize migration generation in EF Core Code ...
using SqlOperation. Mark the desired Models with an annotation. Open your migration file and make changes to your Up method. Then apply the...
Read more >
Part 4. Entity Framework with MVC: Database migration
Entity Framework with ASP.NET MVC: Database migration | Fluent API | Data annotation | Code first migration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found