Пример #1
0
 public Repository(GameVictoryRepository gameVictoryRepository,
                   [NotNull] IDbConnectionFactory connectionFactory,
                   [NotNull] IDbParameterFactory parameterFactory,
                   [NotNull] IDbDataMapper <GameVictory> dataMapper)
     : base(connectionFactory, parameterFactory, dataMapper)
 {
     this.gameVictoryRepository = gameVictoryRepository;
 }
Пример #2
0
 public Repository(PlayerKillrepository playerKillRepository,
                   [NotNull] IDbConnectionFactory connectionFactory,
                   [NotNull] IDbParameterFactory parameterFactory,
                   [NotNull] IDbDataMapper <PlayerKill> dataMapper)
     : base(connectionFactory, parameterFactory, dataMapper)
 {
     this.playerKillRepository = playerKillRepository;
 }
Пример #3
0
 public Repository(AiKillRepository aiKillRepository,
                   [NotNull] IDbConnectionFactory connectionFactory,
                   [NotNull] IDbParameterFactory parameterFactory,
                   [NotNull] IDbDataMapper <AiKill> dataMapper)
     : base(connectionFactory, parameterFactory, dataMapper)
 {
     this.aiKillRepository = aiKillRepository;
 }
 /// <summary>
 /// Constructeur de DbRepository.
 /// </summary>
 /// <param name="connectionFactory">
 /// Fabrique de connexion à la base de données. Utilisée pour créer une connexion avant chaque requête.
 /// </param>
 /// <param name="parameterFactory">
 /// Fabrique de DBParameter. Utilisée pour chaque paramêtre d'une requête préparée.
 /// </param>
 /// <param name="dataMapper">
 /// <see cref="IDbDataMapper{T}"/> à utiliser pour transformer les données provenant de la base de données en un objet
 /// ainsi que pour obtenir les clés primaires générées.
 /// </param>
 /// <seealso cref="IDbConnectionFactory"/>
 /// <seealso cref="IDbParameterFactory"/>
 /// <seealso cref="IDbDataMapper{T}"/>
 protected DbRepository([NotNull] IDbConnectionFactory connectionFactory,
                        [NotNull] IDbParameterFactory parameterFactory,
                        [NotNull] IDbDataMapper <T> dataMapper)
 {
     this.connectionFactory = connectionFactory;
     this.parameterFactory  = parameterFactory;
     this.dataMapper        = dataMapper;
 }
Пример #5
0
 public Repository(AchivementRepository achivementRepository,
                   [NotNull] IDbConnectionFactory connectionFactory,
                   [NotNull] IDbParameterFactory parameterFactory,
                   [NotNull] IDbDataMapper <Achivement> dataMapper)
     : base(connectionFactory, parameterFactory, dataMapper)
 {
     this.achivementRepository = achivementRepository;
 }
Пример #6
0
 public Repository(ProtectionOfPlayerRepository protectionOfPlayerRepository,
                   [NotNull] IDbConnectionFactory connectionFactory,
                   [NotNull] IDbParameterFactory parameterFactory,
                   [NotNull] IDbDataMapper <ProtectionOfPlayer> dataMapper)
     : base(connectionFactory, parameterFactory, dataMapper)
 {
     this.protectionOfPlayerRepository = protectionOfPlayerRepository;
 }