Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Server Index Fill Factor #19147

Open
bender-ristone opened this issue Dec 3, 2019 · 1 comment
Open

SQL Server Index Fill Factor #19147

bender-ristone opened this issue Dec 3, 2019 · 1 comment

Comments

@bender-ristone
Copy link

@bender-ristone bender-ristone commented Dec 3, 2019

How to specify the index option, fe FILLFACTOR?

CREATE NONCLUSTERED INDEX [IX_Name] ON [dbo].[Demo]
(
	[Name] ASC
)
WITH (FILLFACTOR = 80) ON [PRIMARY]
modelBuilder.Entity<Demo>(entity =>
{
      entity.HasKey(e => e.Gid);
      entity.HasIndex(e => e.Name).HasName("IX_Name");
});               
                
@ajcvickers

This comment has been minimized.

Copy link
Member

@ajcvickers ajcvickers commented Dec 4, 2019

@bender-ristone I will discuss with the team, but I don't think there is currently a way to express this in EF Core. You may need to edit the generated migration and write the SQL above explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.