Exemple #1
0
        public void Initialise(Command command, IDbAdaptor adaptor)
        {
            _adaptor = adaptor;
            _command = command;

            _connection = _adaptor.CreateCommand(ConfigurationManager.AppSettings["ConnectionString"], _command.Sql);

            _adaptor.CreateParameters(_command.Parameters);
        }
Exemple #2
0
        public void Initialise(Command command, IDbAdaptor adaptor)
        {
            _adaptor = adaptor;
            _command = command;

            _connection = _adaptor.CreateCommand(ConfigurationManager.AppSettings["ConnectionString"], _command.Sql);

            _adaptor.CreateParameters(_command.Parameters);
        }