linq to entities - How to compare numeric and string values same times in Entity framework in C# with Lambda expression -


i want compare search value table columns fields, if compare string values contains property, no error in case of adding numeric value, showing "does not take 1 argument"

i want compare search value table columns fields, if compare string values contains property, no error in case comparing both numeric , string values, showing

does not take 1 argument

as displayed in attached picture

you using single = assignment operator. comparison use == operator:

where(p => p.venername.contains(searchtext) || p.primarycontact == id) 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -