Пример #1
0
        public int ExecSQL(string sqlstr, params object[] values)
        {
            ValidateSqlStrAndParams(sqlstr, values);

            int result = 0;

            _engine.DoCommand((cmd) =>
            {
                InitDbCommand(cmd, sqlstr, values);
                result = this.DoExecCommand(cmd);
            });
            return(result);
        }