4

我正在使用 EF 5.0 和图表建模器 (*.edmx) 创建模式并从模型生成数据库,我想知道是否有任何方法可以通过此建模器(仅)在某些属性上创建索引。

非常感谢您的回答或建议。

//编辑

我正在努力,如果我成功了,我会分享一点“如何做”。

4

1 回答 1

1

Here is an article about Model-First in the Entity Framework 4

Read the sections about Generating the DDL and Influencing the DDL Generation

Update

Take a look at this example too: Entity Framework Part 5 Model First : Create a database with the Complex Types.

于 2013-02-19T11:53:59.850 回答