Exemplo n.º 1
0
        public UserRepository(ILoggerTemplates templates)
        {
            _templates = templates;

            Log.Logger.LogEventDebug(LoggerEvents.CONSTRUCTOR, _templates.Constructor, nameof(UserRepository));

            _repository = new Repository <User>(_context, templates);
        }
Exemplo n.º 2
0
        internal UserRepository(IDoWithYouContext context, IRepository <User> repository, ILoggerTemplates templates)
        {
            _templates = templates;

            Log.Logger.LogEventDebug(LoggerEvents.CONSTRUCTOR, _templates.Constructor, nameof(UserRepository));

            _context    = context;
            _repository = repository;
        }
Exemplo n.º 3
0
        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);
        }