我有一个现有的数据库,我想使用它来构建一个新的应用程序 EF4.0
有些表没有定义主键,因此当我创建新的实体数据模型时,会收到以下消息:
The table/view TABLE_NAME does not have a primary key defined
and no valid primary key could be inferred. This table/view has
been excluded. To use the entity, you will need to review your schema,
add the correct keys, and uncomment it.
如果我想使用它们并修改数据,是否必须将PK添加到这些表中,或者是否有解决方法以便不必这样做?