Webapi configure is disable

2 posts, 0 answers
  1. Saeid
    Saeid avatar
    7 posts
    Member since:
    Jan 2012

    Posted 17 Feb 2015 Link to this post

    I want select entity in configure ASP.NET Web API service window but some entities is disable. (this picture)
    I want know why?

  2. Doroteya
    Doroteya avatar
    497 posts

    Posted 18 Feb 2015 Link to this post

    Hi Saeid,

    Thank you for contacting us.

    In general, Services Wizard disables the generation of Web API services for entities, which have either a composite primary key or no primary key at all. You can check the details about step 4 in the How to: Expose OpenAccessContext via ASP.NET Web API article. 

    In fact, based on the provided screenshot, my best guess is that the disabled entries are for classes with composite primary key. If this is indeed the case, this knowledge base article will provide you with a step-by-step tutorial for resolving the situation. 

    I hope this helps. Do let us know how the things on your side are.

    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
  3. DevCraft banner
Back to Top