/ Published in: C#
                    
                                        
Note that C# doesn't allow naming in the SELECT statement. Must use the LET operator for this purpose.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
from c in context.Contacts
where c.FirstName == "Robert"
select ContactName
Comments
 Subscribe to comments
                    Subscribe to comments
                
                