Ejemplo n.º 1
0
 public QueryProvider(
     IQueryExecutor queryExecutor,
     IMappingRuleTranslator mappingRuleTranslator,
     IQueryTracker queryTracker)
 {
     _queryExecutor         = queryExecutor;
     _mappingRuleTranslator = mappingRuleTranslator;
     _queryTracker          = queryTracker;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize the DbContext and initialize the mapping roles.
        /// </summary>
        /// <param name="connectionString">Connection string</param>
        private void InitializeDbContext(string connectionString)
        {
            _queryExecutor = new QueryExecutor(connectionString);
            _queryTracker  = new QueryTracker();
            var entityMappingContainer = new EntityMappingContainer();

            _mappingRuleTranslator = new MappingRuleTranslator(entityMappingContainer);

            _isDisposed = false;

            InitializeDbSets();

            Mappings(entityMappingContainer);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize the DbContext and initialize the mapping roles.
        /// </summary>
        /// <param name="connectionString">Connection string</param>
        private void InitializeDbContext(string connectionString)
        {
            _queryExecutor = new QueryExecutor(connectionString);
            _queryTracker = new QueryTracker();
            var entityMappingContainer = new EntityMappingContainer();
            _mappingRuleTranslator = new MappingRuleTranslator(entityMappingContainer);

            _isDisposed = false;

            InitializeDbSets();

            Mappings(entityMappingContainer);
        }