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!

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    mattdunndc created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)