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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -