-
Notifications
You must be signed in to change notification settings - Fork 0
Repository Structure
Anthony G. Rivera Cosme edited this page Jul 5, 2022
·
1 revision
Every repository that is not inside the core entities and/or implementations has the basic following methods ready to be consumed:
-
CreateDataLogicAsync- This method is execute when the entity is being created.
-
UpdateDataLogicAsync- This method is executed when the entity is being updated.
-
SaveAsync- Process and saves a single entity.
-
SaveRangeAsync- Process and saves a range of entities (Slow).
- This is the regular entity framework save which is pretty slow when saving thousand of entities.
-
SaveRangeBulkAsync- Process and saves a range of entities in an optimized implementation (Fast).
- This is an optimized implementation of entity framework save which is extremely fast at saving.
-
GetOneAsync- Gets one entity by id.
-
GetRangeAsync- Gets a range of entities by ids.
-
DeleteAsync- Deletes an entity
- If IsDeleted field is present then the entity is soft deleted instead, otherwise the entity is deleted permanently.
-
DeleteRangeAsync- Deletes a range of entities
- If IsDeleted field is present then the entities are soft deleted instead, otherwise the entities are deleted permanently.
-
SearchPredicate- This method provides the search criteria filters.
-
Sort- This method provides the sorting criteria filters.
-
SearchAsync- Searches for entities matching the
SearchPredicatecriteria.
- Searches for entities matching the
-
SearchPagedAsync- Searches for entities matching the
SearchPredicatecriteria and compaginates the result.
- Searches for entities matching the