Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
60 Points
62 Posts
Feb 03, 2012 08:37 PM|LINK
I have a dynamic linq query with contains condition in it. But it gives me the following error: -
No applicable method 'Contains' exists in type 'Int32'
fc.Colvalue[0] is 'int' datatype.
coln = fc.Colname; colv = fc.Colvalue[0].ToString(); value = coln + ".Contains" + "(" + colv + ")"; inputdata = inputdata.AsQueryable().Where(value).ToList();
@black
Member
60 Points
62 Posts
Dynamic linq with where clause --- contains
Feb 03, 2012 08:37 PM|LINK
I have a dynamic linq query with contains condition in it. But it gives me the following error: -
No applicable method 'Contains' exists in type 'Int32'
fc.Colvalue[0] is 'int' datatype.
coln = fc.Colname; colv = fc.Colvalue[0].ToString(); value = coln + ".Contains" + "(" + colv + ")"; inputdata = inputdata.AsQueryable().Where(value).ToList();