views:

16

answers:

0

Hello.

My db has a configuration table with just 1 record and no primary key.

I would like to create a model with EF to map this table but when I use "Update model from database" the first field became the primary key.

When I remove the PK and build, VS shows:

The table/view 'dbo.TableName' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.

What do I have to do? Leave the first field as a PK? Insert a PK field in this "one record table"?

Thanks.