What is the difference between LINQ search forms? [duplicate]

1

What's the difference between:

var query =  from s in db.DetailsRaWeb
             where s.cod_cli.Equals(Cod_Cli) && s.tag.Equals(TAG)
             select s;

and this:

query = query.Where(s => s.cod_cli.Equals(Cod_Cli) && s.tag.Equals(TAG));

As I understand it, the first one performs the query itself, and the second one filters the query?

    
asked by anonymous 25.07.2017 / 16:56

0 answers