Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

nuget.org : entitydbextensions

Tired of manual and repetitive code when it comes to deleting child and subsequent objects with validations and nested loops? The EntityDbExtensions library simplifies the process for you. By simply invoking the method UpdateAndHandleDeletedChildren in the .Update of the root class, it will automatically handle the recursive deletion of all child, grandchild, and subsequent objects that have been removed from your root class. The method will inspect classes containing a virtual child property with a List type, such as IEnumerable<YourClass>, ICollection<YourClass> or List<YourClass>. It performs a validation check to determine if the object has been deleted, marking it as removed. This marking signals Entity Framework to handle the deletion seamlessly. The validation process is recursive, ensuring that all child and subsequent objects undergo thorough validation for removal.

Registry - Homepage - JSON
purl: pkg:nuget/entitydbextensions
Keywords: EntityDbExtensions, Entity, EntityExtensions, EntityFramework, EntityFrameWorkCore, Extensions, Delete, Remove, Child, Reflection, DbExtensions, Handle, UpdateAndHandleDeletedChildren
License: MIT
Latest release: 3 months ago
First release: 3 months ago
Downloads: 226 total
Stars: 4 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago

    Loading...
    Readme
    Loading...