开发者

imported function name is not visible in entities context

开发者 https://www.devze.com 2023-01-01 00:08 出处:网络
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 novalue. I tried using Import function. and the function is

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);
     开发者_如何学Go       }
            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.


functions and procs are not supported in .net framework less than 4 although they are appeared in 3.5 , they are not supported

0

精彩评论

暂无评论...
验证码 换一张
取 消