c# - LINQ - Not returning the same value as SQL Server -


i have weird issue.

i have query:

var systemappentityviewmodelfieldcustom_securitybyuserlist = (from t in coreentitymodel.systemappentityviewmodelfieldcustom_securitybyuser                 (t.systemappuserid == currentsystemappuser.systemappuserid)                     && (t.systemcultureid == currentsystemappuser.systemcultureid)                 select t).tolist(); 

producing these values field "customfilterid":

enter image description here

as can see, "customfilterid" = 1 4 items, when check sqlprofiler , run result query in sqlserver, this:

enter image description here

a variation of "customfilterid" = 1 , 2.

any idea why linq produce 4 items "customfilterid" = 1?

found issue. view not selecting pk column of table , adding pk column of table select list of view, produced correct results.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -