Exemplo n.º 1
0
 public ActivitiesRepository CreateActivitiesRepository()
 {
     DbContext databaseContext = new AppUserDatabaseContext();
     IGenericQueryFactory genericQueryFactory = new GenericQueryFactory();
     IActivityQueryFactory activityQueryFactory = new ActivityQueryFactory();
     return new ActivitiesRepository(databaseContext, genericQueryFactory, activityQueryFactory);
 }
Exemplo n.º 2
0
 public NotesRepository CreateNotesRepository()
 {
     DbContext databaseContext = new AppUserDatabaseContext();
     IGenericQueryFactory genericQueryFactory = new GenericQueryFactory();
     return new NotesRepository(databaseContext, genericQueryFactory);
 }