Ensure Subcollections Use TransactionRepositories Inside Transactions #37
Labels
bug
Something isn't working
enhancement
New feature or request
from_willyovale
An issue described in original project, but never implemented
Description
When interacting with subcollections inside a transaction, the subcollections should also be
TransactionRepositories
to ensure consistency and proper transaction handling. Currently, subcollections do not automatically switch toTransactionRepositories
within transactions.Steps to Reproduce
TransactionRepository
.Expected Behavior
Subcollections should automatically switch to
TransactionRepositories
when inside a transaction.Actual Behavior
Subcollections remain as regular repositories, not switching to
TransactionRepositories
within transactions.Acceptance Criteria
ISubCollection<Entity>
toITransactionRepository<Entity>
when interacting with subcollections inside a transaction.TransactionRepository
.Additional Context
TransactionRepositories
inside transactions.Proposed API Changes
Update ISubCollection Type:
ISubCollection<Entity>
toITransactionRepository<Entity>
when inside a transaction.Modify Repository Initialization:
TransactionRepositories
when inside a transaction.Unit Tests:
TransactionRepositories
within transactions.Example Implementation
Original Issue
The text was updated successfully, but these errors were encountered: