Exemple #1
0
        protected override Expression VisitLambda <T>(Expression <T> node)
        {
            if (_isFirstVisit)
            {
                var visitor2 = new ParametersVisitor(_provedorDependencias);
                visitor2.Visit(node.Body);
            }

            _isFirstVisit = false;
            return(base.VisitLambda <T>(node));
        }
 IEnumerable <TReturn> IDatabaseAccessor.QueryMany <TReturn, TSecond>(string sql, CommandType commandType, ParametersVisitor parameters, string splitOn)
 {
     return(accessor.QueryMany <TReturn, TSecond>(sql, commandType, parameters, splitOn));
 }
 IEnumerable <T> IDatabaseAccessor.QueryMany <T>(string sql, CommandType commandType, ParametersVisitor parameters)
 {
     return(accessor.QueryMany <T>(sql, commandType, parameters));
 }
 Task <int> IDatabaseAccessor.ExecuteAsync(string sql, CommandType commandType, int?commandTimeout, ParametersVisitor parameters, CancellationToken cancellationToken)
 {
     throw new NotImplementedException();
 }
 int IDatabaseAccessor.Execute(string sql, CommandType commandType, int?commandTimeout, ParametersVisitor parameters)
 {
     return(accessor.Execute(sql, commandType, commandTimeout, parameters));
 }
        T IDatabaseAccessor.QuerySingleOrDefault <T>(string sql, CommandType commandType, ParametersVisitor parameters)
        {
            Func <DataSet, ParametersVisitor, object> handler = gate.TryGetHandlerRead(sql); // 1xSet

            if (handler != null)
            {
                object result_object = handler(db, parameters);
                return((T)result_object);
            }
            return(accessor.QuerySingleOrDefault <T>(sql, commandType, parameters));
        }
 Task <T> IDatabaseAccessor.QuerySingleAsync <T>(string sql, CommandType commandType, ParametersVisitor parameters, CancellationToken cancellationToken)
 {
     throw new NotImplementedException();
 }
 TReturn IDatabaseAccessor.QuerySingle <TReturn, TSecond, TThird, TFourth>(string sql, CommandType commandType, ParametersVisitor parameters, string splitOn)
 {
     throw new NotImplementedException();
 }
 T IDatabaseAccessor.QuerySingle <T>(string sql, CommandType commandType, ParametersVisitor parameters)
 {
     return(accessor.QuerySingle <T>(sql, commandType, parameters));
 }
 Task <IMultipleResultReader> IDatabaseAccessor.QueryMultipleAsync(string sql, CommandType commandType, ParametersVisitor parameters, CancellationToken cancellationToken)
 {
     throw new NotImplementedException();
 }
 IMultipleResultReader IDatabaseAccessor.QueryMultiple(string sql, CommandType commandType, ParametersVisitor parameters)
 {
     // see : Helpline.Repository.Data.HelplineData.GetUserInfo(databaseAccessorFactory, 710);
     return(accessor.QueryMultiple(sql, commandType, parameters));
 }
 Task <IEnumerable <T> > IDatabaseAccessor.QueryManyAsync <T>(string sql, CommandType commandType, ParametersVisitor parameters, bool buffered, CancellationToken cancellationToken)
 {
     throw new NotImplementedException();
 }
 IEnumerable <TReturn> IDatabaseAccessor.QueryMany <TFirst, TSecond, TThird, TFourth, TFifth, TSixth, TSeventh, TEighth, TNinth, TTenth, TEleventh, TReturn>(string sql, CommandType commandType, ParametersVisitor parameters, Func <TFirst, TSecond, TThird, TFourth, TFifth, TSixth, TSeventh, TEighth, TNinth, TTenth, TEleventh, TReturn> map, string splitOn)
 {
     throw new NotImplementedException();
 }
 IEnumerable <TReturn> IDatabaseAccessor.QueryMany <TReturn, TSecond, TThird>(string sql, CommandType commandType, ParametersVisitor parameters, string splitOn)
 {
     throw new NotImplementedException();
 }