doc error in INotifyPropertyChanging (Always "Name" in VB)

Thread is closed for posting
2 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 08 Jun 2011 Link to this post

    Ref: Documentation: How to: Implement INotifyPropertyChanging/ed Interface (VB.NET)

    There is an error in the code:

    Line 336, void GenerateProperty will generate:

    Public Overridable Property OrderNumber As Long


            Return Me._OrderNumber

        End Get

        Set(ByVal value As Long)


            Me._OrderNumber = value


        End Set

    End Property

    >> as you can see it does an OnPropertyChanging/ OnPropertyChanged of “Name”… always.

    It should be this:

    (The Set, Line 336 of Specific.ttinclude, void GenerateProperty)

    Set(ByVal value As <#= this.GetTypeStringPresentation(property) #>)

           Me.OnPropertyChanging("<#= property.Name #>")

     Me.<#= property.FieldName #> = value

     Me.OnPropertyChanged("<#= property.Name #>")

    End Set

  2. Pencho
    Pencho avatar
    22 posts

    Posted 11 Jun 2011 Link to this post

    Hi Erik,

    Thank you for bringing this issue to our attention. We will fix the tutorial for the incoming Q2 release. If you find any other issues or if you have any suggestions about the OpenAccess documention, do not hesitate to contact us.

    the Telerik team
    Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Back to Top