Linq to SQL - what's better?
        Posted  
        
            by msony
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by msony
        
        
        
        Published on 2010-05-13T10:09:57Z
        Indexed on 
            2010/05/13
            10:34 UTC
        
        
        Read the original article
        Hit count: 309
        
db.Albums.FirstOrDefault(x => x.OrderId == orderId)
or
db.Albums.FirstOrDefault(x => x.OrderId.Equals(orderId))
        © Stack Overflow or respective owner