加入指数EF模型第一次设计 [英] Add index in EF Model First design

查看:122
本文介绍了加入指数EF模型第一次设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢做模型,第一个设计实体框架(4)的选项。不过,我一直无法找出如何添加一个额外的索引表中除了主键。

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)?

推荐答案

阅读这篇文章 。第影响的DDL生成

心连心

这篇关于加入指数EF模型第一次设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆