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 <<> < No, changing both of these In addition to this, you agree with the logical operators You can write: (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 (); }
where Generated SQL will look like this anyway:
where [condition1] and [condition2]
where the images. Type. Ecloss ("jpg") & amp; Amp; Images.ImageSource.Id == 5
Comments
Post a Comment