c# - Linq query definition -
I am using the Windows Azure Toolkit product on codeplex. It looks right to meet my needs but there are very few examples. Specifically, the Ezoor Tables has a method to obtain data:
Get public virtual t (expression & lt; funk & lt; t, bool & gt; & gt; count) {This return.Query.Where (predicate). FirstOrDefault (); } The problem is that there are no examples in the toolkit and I can not understand logic: (expression & lt; funk & lt; t , Bool & gt; & gt; prediction) should look like this
Is there anyone with knowledge of Linux and C # that can give me some advice or suggestions
This is just one The predicate, is a method that accepts the parameter type T and A Boolean Returns - The easiest way to use it is to pass the lambda expression - simple example: public class Foo & lt; T & gt; {IQueryable & lt; T & gt; Query; Obtain Public Virtual T (Express & lt; Funk & lt; T, bool & gt; Count) {Return JQuery.Where (predicate). FirstOrDefault (); }} ... foo & lt; Int & gt; Foo = new foo & lt; Int & gt; (); Int firstValueUnder100 = foo.Get (x => x & lt; = 100);
Comments
Post a Comment