entity framework - EF OrderBy method doesn't work with joins -


The following tasks (sorted by name):
from context to t. Table 1 Choose the orderbird ("this name.") T

This does not work (no order):
T. Table 1 of reference. Orderbie ("this .name")
In the context, insert T2. T. T at 2. SIID is equal to T2 Select some IID T

and also not (trying to refer to the parent's table to do this):
reference. Table1
Reference Join T2 in T. on Table2.OrderBy ("it.Table1.Name") SIID equals T2. Select some IID T

Neither do it (trying on the baby's table): Table 1 - Join T2 in the context. Tate. 2. Order B ("It."). SIIID is equal to T2. Choose some IIDs T

How do I ignore order joining

This will work:

  (in reference to T. in the attribute 1 in T2 reference. Equals on table2.T.SomeId 2.SomeId select t ). Oderby ("it.Name");  

However, you should not use joining , as @ moi_meme comments.


Comments