How do I set up an index using code in the first place?

When creating classes using the first code approach, it automatically generates CLUSTERED INDEX for the Key property and NON-CLUSTERED INDEX for the foreign key property, but this is not always what we want, is there a way to customize it?

+3
indexing ef-code-first


source to share


No one has answered this question yet

See similar questions:

nine
Adding an index to a table
8
GUID COMB Strategy in EF
4
How to Stop EF4.1 Code-First to Create Culstered Index for PK Object

or similar:

2302
How does database indexing work?
1015
What does a clustered and nonclustered index actually mean?
595
First Code - Model / Database First
156
What's the difference between using INDEX versus KEY in MySQL?
141
EF Code First "Invalid column name 'Discriminator', but no inheritance
112
SQL Server Index Naming Conventions
110
Do I need to create indexes on foreign keys?
96
Is an index required for a primary key in SQLite?
87
How to create an index in Entity Framework 6.2 with first code
2
Entity Framework Item ID Clustered Indexes and Composite Keys First



All Articles
Loading...
X
Show
Funny
Dev
Pics