Home > Net >  Everybody is good! EF Linq, please circle below red area is how to explain and understand, I am a li
Everybody is good! EF Linq, please circle below red area is how to explain and understand, I am a li

Time:10-27

Everybody is good! Below, please circle the red areas is how to explain and understand, I am a little white, online, etc., crab crab

CodePudding user response:

Above is linq look should be connected to check, below is the value assigned to found out

CodePudding user response:

Query a anonymous object,

CodePudding user response:

reference 1st floor LLSGSG response:
linq look should be connected to check is above, below is the found out the assignment of

How to generate d=& gt; d... , e=& gt; E.i d, d, e=& gt; New {d, e})

CodePudding user response:

refer to the second floor is nu month god reply:
query a anonymous objects ,


Answer is too refined, I am a little white, can say detailed point?
Q=& gt; New {
}
I still can read this anonymous object

CodePudding user response:

happy sail 2020 reference 3 floor response:
Quote: refer to 1st floor LLSGSG response:
linq look should be connected to check is above, below is the found out the assignment of

How to generate d=& gt; d... , e=& gt; E.i d, d, e=& gt; New {d, e})
I don't know how to generate this should not hand to play,,

CodePudding user response:

reference set sail happy, 4/f, 2020 response:
Quote: refer to the second floor is nu month god reply:
query a anonymous objects ,


Answer is too refined, I am a little white, can say detailed point?
Q=& gt; New {
}
The anonymous objects I still read


First, look at the document


Enclosing the enterprice which this show is associated collection
D=& gt; D.e nterpriceid represents this. Db. DbDivce associated field
E=& gt; E.i d represents this. Db. Enterprice associated field

Is the conventional join b on Anderson, d=b.i d
this meaningLast new {d, e} that is to say, you want to query which fields, which represents, enclosing the dbDivce and db enterprice fields are,

Finally select from this. Db. DbDivce and db enterprice in all fields, remove the fields you need, as anonymous objects,

CodePudding user response:

Or you can separate the steps, do some intermediate variable, look at every step of the action, easy to understand.