title: How do you add a primary key to a sql view? - Or alternate way to link views to LINQ-2-Entities
body: <p>I'm adding a very simple view (or trying to) to my entities object model.  The database is in SQL Server 2008.  I'm on .Net 3.5 (SP1) using C#.</p>
  
  <p>The view has two fields: color and colorcount, a Varchar(50) and a count(*) respectively.  </p>
  
  <p>When I do Update Model from Database, and select the view to add, it runs (it updated tables, adding fields no problem) but does not add the view.  No error, warnings, or messages are displayed.</p>
  
  <p>When I open the .edmx file I see that it shows <code>Warning 6013: No primary key defined.</code></p>
  
  <p>The view is complex and I would rather not translate it to a LINQ query.  How can I add a primary key so that Entities will support the view?</p>
  
  <p>Is there a non-hack-around way to add a view like this to an EDMX?</p>