问题
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