Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello,


I am getting this error

XML
The best overloaded method match for 'System.Data.Entity.Core.Objects.ObjectContext.ExecuteFunction<NorthStar.Business.DataContext.GetRespondentsInfo_Result>(string, params System.Data.Entity.Core.Objects.ObjectParameter[])' has some invalid arguments




here is my code



C#
public virtual ObjectResult<GetRespondentsInfo_Result> GetRespondentsInfo(Nullable<int> projectId, string parametersQuery)
       {
           var projectIdParameter = projectId.HasValue ?
               new ObjectParameter("projectId", projectId) :
               new ObjectParameter("projectId", typeof(int));

           var parametersQueryParameter = parametersQuery != null ?
               new ObjectParameter("parametersQuery", parametersQuery) :
               new ObjectParameter("parametersQuery", typeof(string));

           return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<GetRespondentsInfo_Result>("GetRespondentsInfo", projectIdParameter, parametersQueryParameter);
       }




Please help me i am getting this error after updating .edmx


any help will appreciated

regards,
Lakhan
Posted
Comments
[no name] 4-Jun-14 7:26am    
Thanks

1 solution

Please check this link.May be helped to you.Good Luck ! :)

The best overloaded method match for
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900