Sunday, 15 July 2012

asp.net - Any returns false when in real DB - I do have records -



asp.net - Any returns false when in real DB - I do have records -

here code

dcontext.views .include("torrent") .include("viewer") .any(v => v.torrent.id == dtorrent.id && v.userhostaddress == userhostaddress && v.viewer.id == viewertiksnid.value)

it returns false in database have couple of rows having same information.

how can solve this?

i should write v.viewer.tiksnid instead of v.viewer.id. simple , stupid bug ha?

asp.net .net linq

No comments:

Post a Comment