Best Method for executing a UDF in Entity 4 RRS feed

  • Question

  • Good Morning,

    I have read several articles across the board and from different periods of the EF life for calling a UDF from EF. I was going to go with the method below but was running into the error that follows. In trying to identify the Model.Store name I noticed in the ModelBrowser that I can map functions just like I would map a stored procedure....? So which way should I go. I also thought of a third way which would be to wrap the udf in an sp.

    return IrnMikEnty.ExecuteFunction("ValidateUserCredentials", new ObjectParameter("UserName", str_UserName), new ObjectParameter("Password", str_Password));

    The FunctionImport 'ValidateUserCredentials' could not be found in the container 'IronMikeEntities'.

    Any input greatly appreciated


    Wednesday, June 27, 2012 2:12 PM