Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jumpstart Riddled with errors
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Jumpstart Riddled with errors
Miscellaneous
Thread ID:
00989901
Message ID:
00989901
Views:
79
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
Next
Reply
Map
View

Click here to load this message in the networking platform