Ria Services And Odata
When adding a Domain Service Class (RIA) to a Silverlight project (the Web project), a dialog titled Add New Domain service Class appears. In this dialog you can select via a checkbox to expose Odata endpoint.Depending on you selection, the code generated for the Silverlight client will be different. If you look in the Silverlight Generated Code folder (Show all folders on the solution explorer) open the projname.web.gs file and note the following differences:
If OData not checked, 2 namespaces are generated: ProjName and ProjName.Web. If Odata is checked you get 3 namespaces: ProjName, ProjName.Web.Views, ProjName.Web.Models.

5 Comments:
雖天地之大,萬物之多,而惟吾蜩翼之知。.......................................................
快下班囉~來問個安,跟您打聲招呼.................................................................
Learning makes life sweet.......................................................................
It is easier to get than to keep it.......................................................................
心中醒,口中說,紙上作,不從身上習過,皆無用也。..................................................
Post a Comment
<< Home