Exemple #1
0
        protected void init(string SQL, DTOParams dto)
        {
            DBConf.openConnection();
            cmd.Connection  = DBConf.getConnection();
            cmd.CommandText = SQL;
            StatementBinding stb = new StatementBinding(cmd);

            stb.bindStatement(dto);
            cmd = stb.getPreparedCommand();
        }
Exemple #2
0
 protected void close()
 {
     cmd.Dispose();
     DBConf.closeConnection();
 }