作者y907372002 (yvonne)
看板C_Sharp
标题[问题] silverlight for 读资料库资料
时间Mon Apr 16 16:42:30 2012
您们好:
目前程式撰写遇到一个问题
我试着建了资料库实体模型(.edmx)
再建立网域服务类别(domainservice.cs)
照着网路上的说明做
然後在前台mainpage.xaml建一个DataGrid初始化读取资料如下
projectWeb.tempDomainService1 _OrganizationContext =
new projectWeb.tempDomainService1();
this.dataGrid1.ItemsSource = _OrganizationContext.tables;
_OrganizationContext.Load(_OrganizationContext.GettableQuery());
此资料表是有资料的,而且在网页上show的出第一列资料表的栏位名称
但就是内容是空的,一笔资料都没show出来.
请问是哪里出了问题呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.251.183.241
1F:→ ashram:silverlight板好像刚成立 可以去问问 04/18 10:39
2F:→ ashram:不过老实说你的问题有点不太清楚.. 04/18 10:39
3F:→ ashram:而且有实际debug试过确定有资料下来吗? 04/18 10:40