JonPSmith / EfCore.GenericServices

A library to help you quickly code CRUD accesses for a web/mobile/desktop application using EF Core.
https://www.thereformedprogrammer.net/genericservices-a-library-to-provide-crud-front-end-services-from-a-ef-core-database/
MIT License
601 stars 94 forks source link

saving nested dto's works by including propertynames if the name is not different from entity property name #26

Closed bleissem closed 5 years ago

bleissem commented 5 years ago

As in #21 and #25 updating nested dto's fails In the given example at https://github.com/bleissem/TestNestedInDtosIssue13 the failing unit tests works with commit https://github.com/bleissem/TestNestedInDtosIssue13/commit/b0b33929f32a1941add0b3e05ad27b93f8535d14 because of providing the navigation properties as an expression as long as the name is not different than the db entity name

JonPSmith commented 5 years ago

GenericServices is not designed to use Includes. It uses DTOs with AutoMapper to flatten entities and their relationships.