Visual Studio LightSwitch - oData data source - by Parttanna

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 749933 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/19/2012 8:23:51 AM
Access Restriction Public


I have created WCF Data Service. I used EDM with derived entities (inheritance) to generate the underlying conceptual and actual models. 'Element' entity is a root and 'Follower' is derived entity. Only the root entity, 'Element', is included in the Atom description of the service when calling the service from the browser, as follows

<?xml version="1.0" encoding="UTF-8"?>
<service xmlns:atom="" xmlns="" xml:base="http://localhost:3816/SentagonDataService.svc/">
<collection href="Elements">

But when I use the above oData data service as a data source in the LightSwitch project in Visual Studio 2012 I get the following message in the data source wizard; "The selected service does not expose any entites. Once entities are added, you will need to refresh this data source." As you can see in the above xml 'Elements' is described as a source.
Sign in to post a comment.
Posted by Parttanna on 6/21/2012 at 10:35 AM

This is extremely disappointing. Why do you include inheritance functionality at all? My entity model is fundamentally based on inheritance. As a matter of fact I can't imagine any respectful model implementation that does not use it. What you are asking me is to redo the entire model.

The lack of support for inheritance also shows in many other places. One is, the support for oData queries in browser.

Very disapointed
Posted by Microsoft on 6/21/2012 at 7:39 AM
Hi Parttanna,
Thanks for your quick response. The problem is not with the Element->Follower derivation but with Element->Person, Sentag, Group, etc. inheritance. LightSwitch currently does not support inheritance so we are not able to 'attach' to Element since it participates in inheritance with the other entities defined in the $metadata (but not exposed in the .svc file). The work around is to eliminate all inheritance from the feed definition.

Hope this helps.
Dan Leeaphon
Posted by Parttanna on 6/20/2012 at 5:40 PM
thanks for the reply, I will attach the metadata document to this bug report

Posted by Microsoft on 6/20/2012 at 3:05 PM
Hi Parttanna,
Thank you for your feedback. To better diagnose the issue you are seeing would it be possible to provide the $metadata for your service?

Best regards,
Dan Leeaphon
Visual Studio LightSwitch
Posted by Microsoft on 6/19/2012 at 9:34 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 6/19/2012 at 8:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(