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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With