Friday, July 23, 2010

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.

0 Comments:

Post a Comment

<< Home