问题
I like the option of doing model first design with the Entity Framework (4). However, I haven't been able to find out how to add an additional index to a table besides the primary key.
Is this possible in the visual designer? Or do you need to add an index manually after creating the database (which would be a shortcoming of the designer)?
回答1:
Read this article. Section Influencing the DDL Generation.
HTH
来源:https://stackoverflow.com/questions/3333674/add-index-in-ef-model-first-design