c# - Does the order of EF linq query clauses influence performance? -


Should I worry about the order of the unit framework linq query clauses in terms of functioning?

In the example below can change the order of two, where there is an effect on DB lookup? By using <<> < (var context = new ModelContext ()) {Var fetchedImages = (Include images from images in the context ("image") where the images are typed.Elloles (" JPG ") where images. Imagesoros.id ==5 select images) .ORA (); }

No, changing both of these where Generated SQL will look like this anyway:

  where [condition1] and [condition2]   

In addition to this, you agree with the logical operators You can write:

  where the images. Type. Ecloss ("jpg") & amp; Amp; Images.ImageSource.Id == 5    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -