This is a migrated thread and some comments may be shown as answers.

Webapi configure is disable

1 Answer 46 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Saeid
Top achievements
Rank 1
Saeid asked on 17 Feb 2015, 10:31 AM
Hi
I want select entity in configure ASP.NET Web API service window but some entities is disable. (this picture)
I want know why?

1 Answer, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 18 Feb 2015, 12:39 PM
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.


Regards,
Doroteya
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Web Services
Asked by
Saeid
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Share this question
or