Exemplo n.º 1
0
 public override bool save()
 {
     if (!isValid(new List<string>() { "lID"}))
         return false;
     string sqlCommand = String.Format(@"insert into Label (pID,lContent,lMapLayerName,lIsChoosed) values ({0}, '{1}', '{2}',{3})"
         , pID, lContent, lMapLayerName, lIsChoosed ? 1 : 0);
     Sql sql = new Sql();
     return sql.insertLabel(sqlCommand);
 }