Calling UDFs from Entity Framework - Not what you might have expected
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 29 Nov 2008 |
View original | Bookmarked: 0 time(s)
Along with Stored Procedures, you can bring UDFs into an EF Entity Data Model which
also surfaces as a function in SSDL.
Unlike Stored Procedures, however, a UDF is composable on the server side and this
is reflected in its attributes.
Function Name="ufnLBtoKG"
ReturnType="nvarchar" Aggregate="false"
BuiltIn="false" NiladicFunction="false"
IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
Parameter Name="Pounds" Type="int"
Mode="In" /> Function>.csharpcode, .csharpcode...