LINQ Contains operation is not supported by Azure Table API

Posted on

 

Unfortunately Azure API not supporting Contains LINQ expressions .

 

Contains Syntax:

LINQ

public static Product[] GetProducts(Guid[] prodIDs)

{

   return (from p in GetProducts()

where prodIDs.Contains(p.ProductID)

select p).ToArray<Product>();

}

TSQL expression  – WHERE [t0].[ProductID] IN (@p0, @p1)’,

LINQ contains syntax example has been taken from http://weblogs.asp.net/dwahlin/archive/2008/05/09/using-linq-to-perform-quot-where-in-value1-value2-quot-queries.aspx

Tags: , , ,