Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jumpstart Riddled with errors
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Jumpstart Riddled with errors
Divers
Thread ID:
00989901
Message ID:
00989901
Vues:
81
Sir:

Is there any reason that the jump start section of the manual is so riddled with errors?

For example (one of many, many, many):
Step 5 - Creating an Orders Business Rule Class states that the CheckRules Hook() code should look like this ...
' Checks business rules against the specified DataTable
Public Overrides Function CheckRulesHook(ByVal ds As DataSet, ByVal tableName As String) As Boolean
    Me.ValidateShipName(Me.DataRow("ShipName"))
    Me.ValidateShipRegion(Me.DataRow("ShipRegion").ToString())

    Return Me.ErrorProviderBrokenRuleCount = 0
End Function
However, when following the link, in the middle of the page, Creating Custom Business Rule Objects the instructions for creating the same method reads like this:
Public Overrides Function CheckRulesHook(ds As DataSet, tableName As String) As Boolean

   If Not (ds Is Nothing) Then
      Dim dr As DataRow = ds.Tables(tableName).Rows(0)
   
      Me.ValidateShipName(dr("ShipName").ToString())
      Me.ValidateShipRegion(dr("ShipRegion").ToString())
   End If
   
   Return Me.ErrorProviderBrokenRuleCount = 0
End Function
Oversights of this magnitude cause heartache to those trying to learn the software solely via the manual ... I hope the quality of the documentation does not reflect in the code base itself. I also hope these errors are not purposeful in order to generate training revenue.

Regards,

Charles T. Blankenship
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform