Base solution for your next web application
Open Closed

Location of ODATA Entity classes? #1085


User avatar
0
mattdunndc created

I am following the ODATA integration sample: <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/OData-Integration">http://aspnetboilerplate.com/Pages/Docu ... ntegration</a>

The ODATA sample has the Entities Person/Phone/Phonetype in the People folder in APB.ODATADEMO.Core project. Is this correct when adding entities to WebAPI? What is the ABP best practice for where to put the entity classes?

Thanks!


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Entity is a part of domain layer and should be located under Core project, as best practice.

  • User Avatar
    0
    mattdunndc created

    OK, thanks. Appreciate the response. This was my first day working with APB.