Unbelievable duplicate in an Entity Framework Query

前端 未结 5 593
情书的邮戳
情书的邮戳 2021-02-07 11:40

My SQL query against a particular view returns me 3 different rows.

 select * from vwSummary
 where vidate >= \'10-15-2010\' and vidate <= \'10-15-2010\'
          


        
5条回答
  •  粉色の甜心
    2021-02-07 12:27

    Set entity key on the entity model of the view. This worked for me in two separate instances. You can use one or more properties in the key.

提交回复
热议问题