• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1769
  • Last Modified:

LinqDataSource Where Clause Syntax for And/Or operator?

What is the syntax for And/Or within a LinqDataSource where clause?
something like...

 Where="ANIMAL_TYPE in('Dog', 'Cat')"
0
ChiBella
Asked:
ChiBella
1 Solution
 
ChiBellaAuthor Commented:
Here is where I want the where clause...again, how do you specify and/or/ in within this where clause?    

<asp:LinqDataSource ID="" runat="server"
        ContextTypeName=""
        Select="new (animal_type)"
         Where="animal_type in('DOG','CAT')"
        TableName="ANIMALs">
                   
</asp:LinqDataSource>
0
 
iboutchkineCommented:
Where ANIMALS.AnimalType = "DOG" OrElse ANIMALS.AnimalType = "CAT" .....
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now