Exposing Abstract classes over Ria Service 2010 Preview

Locked Exposing Abstract classes over Ria Service 2010 Preview

  • Monday, November 23, 2009 9:30 PM
     
     
    I have created an empty Entity Data Model, create a new Entity named Dabases and made it abastract, next I have create a new entity named "SqlDatase" that inherits from "Databases" entity.

    Next I created a new Domain Service to expose my entities, but the Databases is disable makes sense as it is abstract, but what about SqlDatabase? why cant I expose it?


    Using VS2010, Ria Services Preview.

    The way of C#

All Replies

  • Monday, November 23, 2009 10:01 PM
    Moderator
     
     
    Hi,

    What do you my "it is disabled"? Do you get a 404 when trying to hit the entity set, or you get a server error (if so, could you please paste the exception and its callstack)?
    Also by "Domain Service" you mean "WCF Data Service"? (or the old name ADO.NET Data Service).

    Thanks,
    Vitek Karas [MSFT]
  • Tuesday, November 24, 2009 11:04 AM
     
     
    Hi Vitek, tks for your answer. let me explain better. I have taken print screen to help.  
    This is my model: 
    http://twitpic.com/qqmv9  

    Next, I Build the solution and go to Add -> New Item -> Domain Service Template 
    http://twitpic.com/qqmzn  
    This is the next screen where I need to select the Entities that I want to expose. The Database is the abstract entity 
    http://twitpic.com/qqn43  

    Note that SqlDatabase entity don´t even appears in the list. My question is why?


    The way of C#
  • Wednesday, November 25, 2009 11:30 AM
    Moderator
     
     
    Hi,

    I somehow missed this question is not about WFC Data Services, but about RIA services. You should have much better luck getting an anwser on the RIA services forum, which can be found here: http://forums.silverlight.net/forums/53.aspx

    Thanks,
    Vitek Karas [MSFT]