   Next you decide to use this view with the Entity Framework,
so you go ahead and import it.  The resulting entity will look
something like this:   As you can see every property icon has a
‘key’ overlay.  Because the entity is based on a view, the EF
doesn’t know which columns make up the primary key, so it
assumes every non nullable column is part of the primary key.
Fixing the Key  The first step is to change the key. In this
case the ID is really the key.  You can do this by opening the
EDMX in the XML editor and changing the EntityType so that
rather than looking like this:   Where every property is
referenced in the <Key>, change it to this:   It is important to
note that you have to make this change in both the
<edmx:StorageModels> and the <edmx:ConceptualModels> sections of
the EDMX, because both models must agree about the shape of the
primary key.  Treat the view as a table  At this point you can
happily query for Employees use the Entity Framework.  But the
Entity Framework won’t allow you to do u