Created
April 20, 2019 12:49
-
-
Save jidesakin/9a13cb69c4bad926d5ed2aa88cba9ad8 to your computer and use it in GitHub Desktop.
Unit of Work Pattern + Repository Pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface IUnitOfWork { | |
| start(): void; | |
| complete(work: () => void): Promise<void>; | |
| getRepository<T>(R: new (transactionManager: any) => T): T; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment