Пример #1
0
        public bool Start(bool vCreateIfNotExist, out int oErrorCode)
        {
            if (!conn.Connect(out oErrorCode))
            {
                return(false);
            }

            if (vCreateIfNotExist)
            {
                if (!conn.WriteToDB(tableCreationQuery, out oErrorCode))
                {
                    return(false);
                }
            }

            // Check if Table has right format
            MySql.Data.MySqlClient.MySqlDataReader reader;
            return(conn.ReadFromDB(createQuery(null), out reader, out oErrorCode));
        }