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":
as can see, "customfilterid" = 1 4 items, when check sqlprofiler , run result query in sqlserver, this:
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
Post a Comment