Sign In
Come Get Some...Thoughts On Software Technology
Alexander Strauss goes Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.Net
Architecture
ASP.Net
Astoria
Cardspace
Development Tools & Tips
Expression
Internet Explorer 8
Links
Media Center
Microsoft Activities & Campaigns
Programming Tasks
S+S
Security
Service Orientation
Silverlight
Standards
Tips
User Experience
Vista
Visual Studio
WCF
Web 2.0
Windows Azure
WPF
Archive
Archives
March 2011
(1)
May 2010
(2)
April 2010
(2)
February 2010
(2)
January 2010
(1)
November 2009
(1)
October 2009
(2)
September 2009
(1)
August 2009
(2)
July 2009
(1)
June 2009
(2)
April 2009
(1)
January 2009
(2)
December 2008
(1)
November 2008
(2)
October 2008
(2)
September 2008
(2)
August 2008
(1)
March 2008
(2)
February 2008
(5)
November 2007
(1)
October 2007
(2)
September 2007
(2)
July 2007
(1)
May 2007
(6)
April 2007
(3)
March 2007
(1)
December 2006
(2)
November 2006
(2)
October 2006
(3)
August 2006
(3)
May 2006
(6)
April 2006
(2)
Astoria - Hello World Style Walkthrough
MSDN Blogs
>
Come Get Some...Thoughts On Software Technology
>
Astoria - Hello World Style Walkthrough
Astoria - Hello World Style Walkthrough
Alex Strauss
10 May 2007 9:39 AM
Comments
3
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 ;)
3 Comments
Architecture
,
WCF
,
.Net
,
Web 2.0
,
Ajax
,
Astoria
,
Pages
Blog - Comment List MSDN TechNet
Comments
Loading...
Leave a Comment
Name
Comment
Please add 4 and 7 and type the answer here:
Post