I have created a view in SQL server by joining 3 tables and using Entity Framework and accessing it in my application.
I have the following code to get the value from view table.
tapDataContext.TapTimeSheetViews.
Where(timesheet=>timesheet.UserId==userId && timesheet.WorkDate==dates);
this fetches duplicate values. But, sql query gives proper values.
I had referred this link here and added
[Key, Column(Order = 0)]
public long TapStartStopDataId { get; set; }
as key value. But still, I don't get proper result when I execute my application.