开发者

Rolling my own CMS with the WCF, what should my contract be?

I'm looking to create a solution for a asp.net mvc app that displays unstructured course descriptions that have been scraped from around the web. The web server will be on a web hosting company while the description db will be on a private network, so I'd like to pass the description to the mvc app through a WCF service. For the body of the description do I just want to use a string property...

public class CourseDescription {

    // data fields
    public string CourseTitle { get; set; 开发者_如何学JAVA}
    public int Days { get; set; }
    public List<DateTime> UpcomingDates { get; set; }

    // html properties
    public string Keywords { get;  set;}
    public string HtmlDescription { get; set; }

}

... or is there a better way?


If it is unstructured text, a string is fine.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜