public UserRepository(ILoggerTemplates templates) { _templates = templates; Log.Logger.LogEventDebug(LoggerEvents.CONSTRUCTOR, _templates.Constructor, nameof(UserRepository)); _repository = new Repository <User>(_context, templates); }
internal UserRepository(IDoWithYouContext context, IRepository <User> repository, ILoggerTemplates templates) { _templates = templates; Log.Logger.LogEventDebug(LoggerEvents.CONSTRUCTOR, _templates.Constructor, nameof(UserRepository)); _context = context; _repository = repository; }
public UserProfileRepository(IDoWithYouContext context, ILoggerTemplates templates) { _templates = templates; Log.Logger.LogEventDebug(LoggerEvents.CONSTRUCTOR, _templates.Constructor, nameof(UserProfileRepository)); _context = context; _repository = new Repository <UserProfile>(_context, templates); }