Astoria - Hello World Style Walkthrough
Create a new project in Visual Studio "Orcas". Be careful not to create a new website.
Then choose Web --> ASP.NET Web Application as project type.
Right-click on the application in solution explorer and choose Add --> New Item.
In the add new item wizard choose ADO.NET Entity Data Model
In the ADO.NET Entity Data Model wizard select "Generate From Database" option.
Select an existing or create a new database connection.
If you choose to create a new connection then choose the database server and database in the connection wizard.
Before committing the connection entries make sure to click on the advanced tab and change the "MultipleActiveResultSets" property to True. Although there is a bug in the wizard which causes the property not being picked up it is a good practice because you often forget to realize the advanced tab. Above that it is the natural way to set the properties and causes the least efforts in later versions when this bug is fixed.
Check the created connection string (the advanced property is missing as said before) and click "Next".
After you finish the connection wizard all artefacts of the entity data model are created and added to the project.
Add a new item to the project which will be the actual service class. Choose Web Data Service from the template list.
In the service class add the namespace of the entity data model artefacts using intellisense and insert the type of the Web Data Service generic class.
Finally add the "MultipleActiveResultSets" property set to "True" to the connection string in the App.config file.
Then build the project and start it. Then you can test your service using the root URI, any entity of the model or a query pattern and see the magic happen ;)