As discussed here and in countless more: I'd like to know if there is ANY way to inherit/extend/... Entity Framework 4.1 to translate a custom method to SQL.
            Asked
            
        
        
            Active
            
        
            Viewed 1,301 times
        
    7
            
            
        - 
                    I protest the downvote. I did plenty of research and people all over are focusing on avoiding the question I am posing. Hardly anyone is talking about providing EF with the SQL equivalent of a method to enable them to be mingled with Linq to Entities. It deserves to be posed as a separate question. – Vincent Vancalbergh Apr 03 '12 at 13:53
 
1 Answers
1
            No. But you if you are using EDMX, you can either use model defined function or custom SQL / mapped SQL function exposed as .NET method available in Linq-to-Entities query.
None of these techniques is available with code-first.
        Community
        
- 1
 - 1
 
        Ladislav Mrnka
        
- 360,892
 - 59
 - 660
 - 670
 
- 
                    While I appreciate your answer based on your experience, can you authenticate this in some way with documentation or blogs from MS? I didn't find any... – Vincent Vancalbergh Apr 03 '12 at 13:55
 - 
                    I found this: http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/39b8d6cd-5c77-40e4-abf3-d620c79b8ff2/ a question posed by you. I guess that's my answer then :) – Vincent Vancalbergh Apr 03 '12 at 14:25