Skip to content

Instantly share code, notes, and snippets.

@jidesakin
Created April 20, 2019 12:49
Show Gist options
  • Select an option

  • Save jidesakin/9a13cb69c4bad926d5ed2aa88cba9ad8 to your computer and use it in GitHub Desktop.

Select an option

Save jidesakin/9a13cb69c4bad926d5ed2aa88cba9ad8 to your computer and use it in GitHub Desktop.
Unit of Work Pattern + Repository Pattern
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