Esempio n. 1
0
 /// <summary>
 /// Creates new SqLiteRepository.
 /// </summary>
 /// <param name="connectionFactory">
 /// DbConnection factory. To create database connections for each query.
 /// </param>
 /// <param name="parameterFactory">
 /// DBParameter factory. To create parameters for each query.
 /// </param>
 /// <param name="dataMapper">
 /// DataMapper. To convert database rows into objects.
 /// </param>
 protected SqLiteRepository(SqLiteConnectionFactory connectionFactory,
                            SqLiteParameterFactory parameterFactory,
                            SqLiteDataMapper <T> dataMapper)
 {
     this.connectionFactory = connectionFactory;
     this.parameterFactory  = parameterFactory;
     this.dataMapper        = dataMapper;
 }
 protected override void Initialize()
 {
     sqLiteConnectionFactory = target as SqLiteConnectionFactory;
 }