locked
Abstract entity and QueryInterceptor ,what to expect? RRS feed

  • Question

  • Hi,

    Following is my model

    public class Car : Vehicle

    public abstract class Vehicle : EntityObject

    This is the result from the service

     <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    - :
      <atom:title>Default</atom:title>
    - <collection href="Vehicles">
      <atom:title>Vehicles</atom:title>
      </collection>
      </workspace>
      </service>

    1.Where is the 'Cars' collection and why?
    2.How can i use QueryInterceptor with 'Car' type?

    Thanks in advance

     

    Thursday, August 26, 2010 8:03 AM

Answers

  • Hi,

    The XML above is a service document, it only shows available entity sets. Without the metadata information, it's impossible to answer this question (the fact that you have a derived type Car doesn't mean there must be an entity set of that type).

    Make sure that all your entity sets which you want to expose have access rights set through the SetEntitySetAccessRight method. Those which don't have any access rights will not be even shown.

    Thanks,


    Vitek Karas [MSFT]
    Thursday, August 26, 2010 4:24 PM
    Moderator