Implementing Unit of Work with Generic Repository for an application having multiple contexts and each context referring to different database.
Any help would be highly appreciated.
TypeScript
public class GenericRepositoryTEntity> where TEntity : class { internal SchoolContext context; internal DbSetTEntity> dbSet; public GenericRepository(SchoolContext context) { this.context = context; this.dbSet = context.SetTEntity>(); }
Answers
Know the answer? Post it. Somebody with the same question will find it here.