dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.52k stars 3.13k forks source link

ForSqlServerIsClustered being ignored #7508

Closed Allann closed 1 year ago

Allann commented 7 years ago

When I generate an initial migration all table configurations that contain the method ForSqlServerIsClustered continue to set the Id field as the clustered index not the new index as specified.

Steps to reproduce

Using the TestContext project provided, open a command prompt in the project folder and type: dotnet ef migrations add InitialCreate

Note that the migration is successful, but no mention of the clustered index on ISO3166TwoLetterCode TestContext.zip

Further technical details

λ dotnet --info .NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information: Version: 1.0.0-preview2-1-003177 Commit SHA-1 hash: a2df9c2576

Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64

Allann commented 7 years ago

Please ignore...

I didn't add the OnModelCreating override.