I would like to implement the ADO.NET/WCF DataService, and I am wondering what is the best way to configure the project in VS2008 SP1 for this purpose.
I currently have an ASP.NET web application project (and not a "WebSite" project type). The data access layer is an Entity model (EF version 1) with a SQL Server database. I have an Entity model in a separate DLL project, and the web application project references this assembly for all data accesses.
The ADO.NET/WCF DataService must also communicate with the Entity model / database. It must be hosted on the same web server (IIS 7.5) along with the web application.
Since the DataService is not directly related to this particular web application (although it will provide and modify data from / in the same database that the web application also uses), my main idea was to separate the DataService in my new project ( which also refers to the Entity Model DLL).
Now I saw that in VS2008 SP1 there is no project type "ADO.NET/WCF DataService". It seems only possible to add a DataService as an element to other existing projects, such as web application projects.
Why is there no separate DataService project type? Does this mean that now I have to add a DataService as an element to the web application project? Or should I create a new web application project and add a DataService to it? (I could remove the pregenerated default.aspx since I don't need any web pages in this project.) What is the best way?
Thank you for your suggestions in advance!
source
share