this operation is not supported in the WCF test client(WCF + ENTITY DATA MODEL)

微笑、不失礼 提交于 2019-12-12 05:18:32

问题


I am getting the error

this operation is not supported in the wcf test client because it uses type catNameService.catNames[]

Class and IClass code:

catService class:

namespace catNameService
{
    class catService:IcatService
    {
        public IEnumerable<catNames> sortBySex(int genderNumber)
        {
            using (var context = new catNamingEntities())
            {
                return context.catNames.Where(t => t.Gender == genderNumber).ToList();
            }
        }
    }
}

IcatService interface:

namespace catNameService
{
     [ServiceContract]
     public interface IcatService
     {
         [OperationContract]
         IEnumerable<catNames> sortBySex(int genderNumber);
     }
}

来源:https://stackoverflow.com/questions/10088252/this-operation-is-not-supported-in-the-wcf-test-clientwcf-entity-data-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!