ReadOnlyChild Template Generated Code
==========================================
<System.ComponentModel.DataObjectField(True, False)> _
Public ReadOnly Property ID() As Integer
Get
CanReadProperty("ID", True)
Return m_intID
End Get
End Property
==========================================
The above code is generated using codesmith templates from http://www.codeplex.com/Wiki/View.aspx?ProjectName=CSLAcontrib
At design time im getting a compile error on the line
<System.ComponentModel.DataObjectField(True, False)> _
Public ReadOnly Property ID() As Integer
The word System is underlined in vs2005 and the error message is
"Reference to a non-shared member requires an object reference. "
I have many other classes that use the same template but this is the only one that is giving this error.
Any ideas?
Do you have a namespace issue? See this thread - someone encountered a similar problem and determined the problem to be a namespace issue.
http://www.thescripts.com/forum/thread164944.html
Good luck,
Chris
Copyright (c) Marimer LLC