View Data From SilverLight
2010-09-30 17:52
253 查看
Hi Spark
I have to write an ADO.net data service for our Silverlight map
project to consume. Do you know how to do this? Preferably in C#.
If so - how long do you think it will take. Please let Robert and I know.
Congrats on your baby boy!
This Question Is My Friend From USA, I do i t a Few months ago, So I
Share with you .
Step 1:
Initialize the database (Test Data)
![](http://hi.csdn.net/attachment/201009/30/0_1285839814Iw1M.gif)
Step 2:
Create “SilverlightloaddisplayApplication”
![](http://hi.csdn.net/attachment/201009/30/0_12858398747InR.gif)
Step 3:
Check “WCF RIA Service ”
![](http://hi.csdn.net/attachment/201009/30/0_1285839911x4gx.gif)
Step 4:
add “ADO.NET Entity Data Model ”
![](http://hi.csdn.net/attachment/201009/30/0_12858399391F1Y.gif)
Step 5:
Check “Table” Figure 5
![](http://hi.csdn.net/attachment/201009/30/0_128583997242OP.gif)
Step 6:
Add “Domain Service Class”
![](http://hi.csdn.net/attachment/201009/30/0_1285840007675s.gif)
Compile the Silverlight Project then Continue.
Step 7:
g)Add “Domain Service Class”
![](http://hi.csdn.net/attachment/201009/30/0_12858400458h2Q.gif)
Step 8:
Add new “Domain Service Class”
![](http://hi.csdn.net/attachment/201009/30/0_12858400814r45.gif)
Step 9:
Design “MainPage.xaml ”
![](http://hi.csdn.net/attachment/201009/30/0_1285840122GpPL.gif)
Step 10:
Code “MainPage.xaml.cs ”
![](http://hi.csdn.net/attachment/201009/30/0_12858401550fiI.gif)
Step 11:
Result “ Load And Display Data ”
![](http://hi.csdn.net/attachment/201009/30/0_1285840184GTp3.gif)
二、 My development environment as following
windows server 2008 r2 EnterPrise
SQL Server 2008 R2
Microsoft Visual Studio 2010
三、 This is All, Any question feel free pls contact me.
I have to write an ADO.net data service for our Silverlight map
project to consume. Do you know how to do this? Preferably in C#.
If so - how long do you think it will take. Please let Robert and I know.
Congrats on your baby boy!
This Question Is My Friend From USA, I do i t a Few months ago, So I
Share with you .
Step 1:
Initialize the database (Test Data)
![](http://hi.csdn.net/attachment/201009/30/0_1285839814Iw1M.gif)
Step 2:
Create “SilverlightloaddisplayApplication”
![](http://hi.csdn.net/attachment/201009/30/0_12858398747InR.gif)
Step 3:
Check “WCF RIA Service ”
![](http://hi.csdn.net/attachment/201009/30/0_1285839911x4gx.gif)
Step 4:
add “ADO.NET Entity Data Model ”
![](http://hi.csdn.net/attachment/201009/30/0_12858399391F1Y.gif)
Step 5:
Check “Table” Figure 5
![](http://hi.csdn.net/attachment/201009/30/0_128583997242OP.gif)
Step 6:
Add “Domain Service Class”
![](http://hi.csdn.net/attachment/201009/30/0_1285840007675s.gif)
Compile the Silverlight Project then Continue.
Step 7:
g)Add “Domain Service Class”
![](http://hi.csdn.net/attachment/201009/30/0_12858400458h2Q.gif)
Step 8:
Add new “Domain Service Class”
![](http://hi.csdn.net/attachment/201009/30/0_12858400814r45.gif)
Step 9:
Design “MainPage.xaml ”
![](http://hi.csdn.net/attachment/201009/30/0_1285840122GpPL.gif)
Step 10:
Code “MainPage.xaml.cs ”
![](http://hi.csdn.net/attachment/201009/30/0_12858401550fiI.gif)
Step 11:
Result “ Load And Display Data ”
![](http://hi.csdn.net/attachment/201009/30/0_1285840184GTp3.gif)
二、 My development environment as following
windows server 2008 r2 EnterPrise
SQL Server 2008 R2
Microsoft Visual Studio 2010
三、 This is All, Any question feel free pls contact me.
相关文章推荐
- How to get data from Oracle DB in silverlight via WCF ?
- Consuming ADO.NET Data Service (Astoria) from Silverlight
- Silverlight 5 Datafrom Template Bug
- Binding UI Events from View to commands in ViewModel in Silverlight 4(转)
- SilverLight-DataControls:四、The PagedCollectionView(分页的集合视图) 对象
- Display, add and delete data from an NSTableView Implement NSTableView.
- mvc中的ViewData用到webfrom中去
- DataGirdView存储过程分页 For Winfrom
- ASP.NET MVC Framework: Passing ViewData from Controllers to Views
- (转)Silverlight–Displaying Tookit Charts from XML Data
- View Column Updatability Information from the Data Dictionary
- Display data from multiple sources in a single Data View(转office.Microsoft)
- lessons learned from the Qlikview loads the data from DB into qvd files
- Export data to Excel from Silverlight/WPF DataGrid
- silverlight touch_2__Access data from DB/Webservice
- Entity Framework: 视图查询时重复返回第一行值, duplicate frst rows in resultset from a view
- Cannot cast from View to ProgressBar的解决办法
- 启动Mysql时报错:mysqld_safe mysqld from pid file /usr/local/mysql/data/Linux.pid ended
- Silverlight Data Bind
- View页面显示Viewdata数据