imported function name is not visible in entities context

Posted by ali moharrami on Stack Overflow See other posts from Stack Overflow or by ali moharrami
Published on 2010-05-24T05:14:55Z Indexed on 2010/05/24 5:21 UTC
Read the original article Hit count: 354

Filed under:
|
|

hi I am working on silverlight application which uses EF. I am able to retrieve the data. But I want to execute a stored procedure which returns no value. I tried using Import function. and the function is created in DataModel.Designer.cs :

 public int ClearWorkflow(Nullable<global::System.Guid> processId)
        {
            ObjectParameter processIdParameter;
            if (processId.HasValue)
            {
                processIdParameter = new ObjectParameter("ProcessId", processId);
            }
            else
            {
                processIdParameter = new  ObjectParameter("ProcessId",typeof(global::System.Guid));
            }

            return base.ExecuteFunction("ClearWorkflow", processIdParameter);
        }

But the function name is not visible in entities context while accessing in silverlight.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight