Exemple #1
0
        public HelperCommand(string connectionString, CommandType commandType)
        {
            connectionString = ISConfiguration.GetDbConfig(connectionString);

            _connection = new SqlConnection(connectionString);
            _command    = new SqlCommand {
                CommandType = commandType, Connection = _connection
            };
        }
Exemple #2
0
        /// <summary>
        /// Inicializa el helper de acceso a datos.
        /// </summary>
        /// <param name="connectionString">Cadena o nombre constante de conexión para la fuente de datos.</param>
        public HelperCommand(string connectionString)
        {
            connectionString = ISConfiguration.GetDbConfig(connectionString);

            _connection = new SqlConnection(connectionString);
            _command    = new SqlCommand {
                CommandType = CommandType.StoredProcedure, Connection = _connection
            };
        }