开发者

Class data members in a Silverlight-enable WCF Service

I have class in my SVC file. I originally created it with only few data members. I have since add more. The problem is that when add these members don't appear when I call the service. I have a select query that populates these fields that appears to work because I can have them populate a different field and see my information. I don't even know how t开发者_开发技巧o began to trouble shoot this. I have attached my class.

public class LightOrder 
{
    public string SKU { get; set; }
    public string productname { get; set; }
    public string itemnumber { get; set; }
    public string asin { get; set; }
    public string amazon { get; set; }
    public double ourprice { get; set; }
    public string bbprice { get; set; }
    public int w1 { get; set; }
    public int w2 { get; set; }
    public int w3 { get; set; }
    public string w4 { get; set; }
    public int quantity { get; set; }
    public string rank { get; set; }
    public string ranking { get; set; }
    public string pendingorder { get; set; }
    public string afner { get; set; }
    public int cost { get; set; }
    public string order { get; set; }
    public string total { get; set; }
    public string profit { get; set; }
    public string percent { get; set; }


}


I don't see any DataContract or DataMember attributes. Is this class part of the service contract via the ServiceKnownType attribute? If so, did you update the service reference after adding the new properties?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜