ADO.NET Data Services (VS08 Sp1 B1) - Surfacing Data

Download this episode

Description

Here we look at how we can surface our own custom data types and data from the ADO.NET Entity Framework over ADO.NET Data Services to quickly build a data-centric set of RESTful web services.

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      dianar77

      I love your videos. I really do, in particular the ones from PRISM.

       

      but here I have two comments. for us, people that wants to learn, but it is a little difficult to know all the tricks. so I am going to give a trick for this video.

       

      in the service initialization put this line. Althought it is in the video, it won't be in your project  when you are connecting your own database, and you can easily forget.

       

      public static void InitializeService(DataServiceConfiguration config)
              {
                  config.SetEntitySetAccessRule("*", EntitySetRights.All);
              }

       

      this make the entities appear when you are browsing service.svc

       

       

      when you are seeing an specific table and you only get the feed page.

       

      go to tools->Internet Options->Content->Settings.....

       

      uncheck the option.

                                 Turn on feed reading view

       

      thanks a lot mike. I appreciated all your videos.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.