none
Mapping Exception In EntityFramework RRS feed

  • Question

  • Hi,

    i am getting the following error :

    error 3003: Problem in Mapping Fragment starting at line 359: All the key properties (vwProductReview.ProductInfoId) of the EntitySet vwProductReview must be mapped to all the key properties (vwProductReview.ProductCategoryID, vwProductReview.ProductInfoId, vwProductReview.UserInfoID) of table vwProductReview.

    Here is the view :

    alter view vwProductReview   
    As   
    SELECT     t1.*,t2.Username,t3.PersonName   
    FROM         tbProductInfo t1 INNER JOIN   
                          UserInfo t2 ON t1.UserInfoID = t2.UserInfoID INNER JOIN   
                          TbUserProfile t3 ON t2.UserInfoID = t3.UserInfoID   
    GO


    Can any one please help me?

    Thanks
    Arindam

     


    Thanks Arindam Chakraborty .Net Designer & Developer. Mumbai, India.
    Thursday, March 31, 2011 6:17 PM

Answers

All replies