Using UDF in the Entity Framework

Can I use custom functions (UDFs) in the Entity Framework? Is it possible to use them through stored procedures and then add them to the model? As far as I know, it is only possible to use selected stored procedures through Function Imports, if they return an object - correct me if I am mistaken; -)

+4
source share
1 answer

It sounds like you can - but this is hardly documented: - (

Here 's a blog post from Queen of Entity Framework - Julia Lerman - describing how to do this.

For future EF4 with .NET 4.0, MS plans to support UDF in Entity SQL — for example, user-defined functions in the EF model — check this out . But this will only be available after the release of the .NET Framework and EFv4.

Mark

+4
source

All Articles