Stored Functions with Linq to Entities
        Posted  
        
            by Lawnmower
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Lawnmower
        
        
        
        Published on 2010-06-03T12:42:19Z
        Indexed on 
            2010/06/03
            12:44 UTC
        
        
        Read the original article
        Hit count: 347
        
Hi,
How can I make a MS-SQL stored function availabe in LINQ expressions if using the Entity framework?
The SQL function was created with CREATE FUNCTION MyFunction(@name) ...). I was hoping to access it similarly to this:
var data = from c in entities.Users where MyFunction(c.name) = 3;
Unfortunately I have only .NET 3.5 available.
© Stack Overflow or respective owner