Пример #1
0
        public override Jucator getJucatorByFullName(string nume, string prenume)
        {
            MySqlCommand    com    = new MySqlCommand("select * from jucatoriMP where nume='" + nume + "' and prenume='" + prenume + "' ;", sqlc);
            MySqlDataReader reader = com.ExecuteReader();

            return(Jucator.jucatorWithMPFromDBRow(reader));

            return(null);
        }
Пример #2
0
        public override Jucator getConcurentWithMPByID(string id)
        {
            sqlc.Close();
            sqlc.Open();
            MySqlCommand    msc    = new MySqlCommand("select * from jucatorimp where iid=" + id + ";", sqlc);
            MySqlDataReader reader = msc.ExecuteReader();

            if (reader.Read())
            {
                return(Jucator.jucatorWithMPFromDBRow(reader));
            }
            else
            {
                return(null);
            }
        }