public override bool delete() { if (!isValid(new List<string>() { "pName" , "pPath" , "pBaseMapIndex" })) return false; string sqlCommand = String.Format("delete from Project where pID={0}", pID.ToString()); Sql sql = new Sql(); return sql.deleteProjectAndMap(sqlCommand); }