Migrations: Operations for annotation changes on model and entity type
See original GitHub issueEF7 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:
- Created 8 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note: The old annotations are now also available for
AlterColumnOperation
.FYI, @roji, @AndriySvyryd is going to add
AlterDatabase
andAlterTable
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.