This is a migrated thread and some comments may be shown as answers.

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

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik
Top achievements
Rank 2
Erik asked on 08 Jun 2011, 03:42 PM
Ref: Documentation: How to: Implement INotifyPropertyChanging/ed Interface (VB.NET)
http://www.telerik.com/help/openaccess-orm/openaccess-tasks-model-tools-use-code-generation-templates-implement-inotifypropertychanged-vbnet.html

There is an error in the code:

Line 336, void GenerateProperty will generate:

Public Overridable Property OrderNumber As Long

    Get

        Return Me._OrderNumber

    End Get

    Set(ByVal value As Long)

        Me.OnPropertyChanging("Name")

        Me._OrderNumber = value

        Me.OnPropertyChanged("Name")

    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

1 Answer, 1 is accepted

Sort by
0
Pencho
Telerik team
answered on 11 Jun 2011, 10:51 AM
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.


Regards,
Pencho
the Telerik team
Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Tags
General Discussions
Asked by
Erik
Top achievements
Rank 2
Answers by
Pencho
Telerik team
Share this question
or