Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 1.38 KB
title ms.date ms.assetid
<= (Less Than or Equal To) (Entity SQL)
03/30/2017
7c46da5c-fa09-4d90-adcc-c7e1b769d8e6

<= (Less Than or Equal To) (Entity SQL)

Compares two expressions to determine whether the left expression has a value less than or equal to the right expression.

Syntax

expression <= expression  

Arguments

expression
Any valid expression. Both expressions must have implicitly convertible data types.

Result Types

true if the left expression has a value less than or equal to the right expression; otherwise, false.

Example

The following Entity SQL query uses <= comparison operator to compare two expressions to determine whether the left expression has a value less than or equal to the right expression. The query is based on the AdventureWorks Sales Model. To compile and run this query, follow these steps:

  1. Follow the procedure in How to: Execute a Query that Returns StructuralType Results.

  2. Pass the following query as an argument to the ExecuteStructuralTypeQuery method:

[!code-csharp[DP EntityServices Concepts 2#LESS_OR_EQUALS](../../../../../../samples/snippets/csharp/VS_Snippets_Data/dp entityservices concepts 2/cs/entitysql.cs#less_or_equals)]

See also

You can’t perform that action at this time.