c# - Linq join two objects to match customer selected records -
I have two lists T objects. I is a list of available forums and other forum selected by the user. It is executed during a jquery AJAX call and a list will pop up the box.
The purpose of this is that I want to flag such forums which the user has subscribed with "selected" which will definitely present it as the highlighted row in an HTML queue box.
Write this question and close the short.
var result = (ExtForum join the custfrm in the client from exf. Select custfrm.Id over externalForums at Exf.Id new {id = exf.Id, name = exf.ForumName , "SelectSelected = (true?" Selected ":" "")}) .Oollist (); This forum will only return a match that matches. What I need is a left The external question is, but in thinking that I do not think it is correct either.Okay, it's right in the right way because it will return all the available forums, but now I I have come back to the square how I will be able to flag my matches.
My attitude which is open for improvement, string object which updates HTML control.
DdlExtBoards.append ($ ('& lt; option & gt; & lt; / option & gt;'). Val (option.id) .html (option .name + "+ option.is selected)); In order to complete this "match", the direction / direction in which direction will be highly appreciated.
Its purpose is to I want to mark the forums that subscribe with the "selected" user
A that you want here, this means that in ExtForum All records are included at least once and any other person who matches the join var result = (ExF in ExtForum Join client in custfrm ExF.Id on ExF External FORMs on .did is equivalent to custfrom.Id in customer, in the customerForFFO from custForum Select Default IfEmpty () New {id = exf.Id, name = exf.ForumName, select = custForum! = Null}
Comments
Post a Comment