Exposing Abstract classes over Ria Service 2010 Preview
-
Monday, November 23, 2009 9:30 PMI 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 PMModeratorHi,
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 AMHi Vitek, tks for your answer. let me explain better. I have taken print screen to help.This is my model:http://twitpic.com/qqmv9Next, I Build the solution and go to Add -> New Item -> Domain Service Templatehttp://twitpic.com/qqmznThis is the next screen where I need to select the Entities that I want to expose. The Database is the abstract entityhttp://twitpic.com/qqn43Note that SqlDatabase entity don´t even appears in the list. My question is why?
The way of C#- Edited by Marcelo de Aguiar Tuesday, November 24, 2009 11:06 AM Text Formatting
-
Wednesday, November 25, 2009 11:30 AMModeratorHi,
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]

