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.