Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do you do multiple operators on the Where command whilst passing parameters/variables?
This does'nt seem to work...
foreach(var node in Model.AncestorOrSelf().Descendants("Standard").Where("Name.Contains(@0)", searchString || "bodyText.Contains(@0)", searchString ||)) { <p>@node.Name</p> }
Struth that was hard work...
foreach(var node in Model.AncestorOrSelf().Descendants("Standard").Where("Name.Contains(@0) || bodyText.Contains(@0)", searchString)) { <p>@node.Name</p> }
Think i'll write a proper Razor cheat sheet soon!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Razor Where Contains Multiple Operators?
How do you do multiple operators on the Where command whilst passing parameters/variables?
This does'nt seem to work...
Struth that was hard work...
Think i'll write a proper Razor cheat sheet soon!
is working on a reply...