public DataTable Getusermessage(int siteid, string userpwd)
{
DataClassesDataContext db = new DataClassesDataContext();
DataTable dt = new DataTable();
var messagelist = from m in db.pop_g where m.g_siteid == siteid orderby m.g_createtime descending select m;
return dt;
}
//怎么将messagelist转换成datatable返回呢?谢谢