Exemplo n.º 1
0
        public override Task <T> ExecuteTopAsync <T>(string cmdId, object parameter)
        {
            IStatement statement = _sql.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(ExecuteQueryFirstAsync <T>(query, parameter));
        }
Exemplo n.º 2
0
        public override Task <IEnumerable <T> > ExecuteQueryAsync <T>(string cmdId)
        {
            IStatement statement = _sql.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(ExecuteAsync <T>(query, null));
        }
Exemplo n.º 3
0
        public override Task <T> ExecuteTopAsync <T>(string cmdId, IDictionary <string, object> paramList)
        {
            IStatement statement = _sql.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(ExecuteQueryFirstAsync <T>(query, paramList));
        }
Exemplo n.º 4
0
        public override int ExecuteCommand(string cmdId, object paramList)
        {
            IStatement statement = _sql.GetStatement(cmdId);
            string     query     = statement.GetCommandText(paramList);

            return(_conn.Query <int>(query, paramList).Single());
        }
Exemplo n.º 5
0
        public override DataTable ExecuteSPQuery(string cmdId, IDictionary <string, object> parameter)
        {
            IStatement statement = _sql.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(Query(query, parameter, CommandType.StoredProcedure));
        }
Exemplo n.º 6
0
        public override Task <int> ExecuteNonQueryAsync(string cmdId, object paramList)
        {
            IStatement statement = _sql.GetStatement(cmdId);
            string     query     = statement.GetCommandText(paramList);

            return(_conn.ExecuteAsync(query, paramList));
        }
Exemplo n.º 7
0
        public override Task <T> ExecuteTopAsync <T>(string cmdId)
        {
            IStatement statement = _oracle.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(ExecuteQueryFirstAsync <T>(query, null));
        }
Exemplo n.º 8
0
        public override Task <IEnumerable <T> > ExecuteQueryAsync <T>(string cmdId, IDictionary <string, object> paramList)
        {
            IStatement statement = _oracle.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(ExecuteAsync <T>(query, paramList));
        }
Exemplo n.º 9
0
        public override DataTable ExecuteQuery(string cmdId, IDictionary <string, object> parameter)
        {
            IStatement statement = _oracle.GetStatement(cmdId);
            string     query     = statement.GetCommandText(null);

            return(Query(query, parameter, CommandType.Text));
        }
Exemplo n.º 10
0
        public override int ExecuteCommand(string cmdId, object paramList)
        {
            IStatement statement = _oracle.GetStatement(cmdId);
            string     query     = statement.GetCommandText(paramList);

            return(_conn.Execute(query, paramList));
        }