Split function in where clause

Posted by abhishek-khandelwal on Stack Overflow See other posts from Stack Overflow or by abhishek-khandelwal
Published on 2010-04-29T06:50:54Z Indexed on 2010/04/29 6:57 UTC
Read the original article Hit count: 344

Filed under:

hello friends

I am using following query in linq

In product table following type of data are stored

abc-def bcd=fgh abc-xyz

var query=from prod in db.Product join cat in db.category on prod.categoryId=cat.categoryID where prod.productName.split('-')[0]=="abc"

but in that query it product annoumous problem

Please give some suggestion to split in where caluse

© Stack Overflow or respective owner

Related posts about linq-to-sql