Example #1
0
 public override bool select()
 {
     if (!isValid(new List<string> { "nsWidth", "nsHeight", "prID"}))
         return false;
     string sqlCommand = String.Format(@"select * from NetSize where nsID={0}", nsID);
     Sql sql = new Sql();
     SqlDataReader reader = sql.selectNetSize(sqlCommand);
     if (!reader.HasRows)
         return false;
     initBySqlDataReader(reader);
     sql.closeConnection();
     return true;
 }