views:

29

answers:

1

Hi,

I have a stored procedure that returns a scalar value, I mapped it in the entity model, created an imported function, however it wasn't add into the context class. So I was not able to found how to call it from C# code.

Thanks in advance, Carlos Loth.

+2  A: 

In EF 1, it's a little involved.

In EF 4, this is directly supported.

Craig Stuntz