在wcf中返回数据时出错?

时间:2015-05-11 05:39:53

标签: c# wcf wcf-data-services wcf-ria-services wcf-security

执行错误消息的GetAll_SamplePriscriptionDrug函数时

public EpriscriptionSrv()
{
using (var ctx = new EpriscriptionContext())
{
ctx.Configuration.ProxyCreationEnabled = false;
LstSamplePriscriptionDrug = ctx.SamplePriscriptionDrug.ToList();
}           
}

public static List<SamplePriscriptionDrug> LstSamplePriscriptionDrug = new List<SamplePriscriptionDrug>();


[OperationContract]
public List<SamplePriscriptionDrug> GetAll_SamplePriscriptionDrug()
{
    return LstSamplePriscriptionDrug;
}

enter image description here

0 个答案:

没有答案