예제 #1
0
파일: NetSize.cs 프로젝트: Leooonard/CGXM
 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;
 }