Issues to Override the Property "PrimaryKeyField"


Author
Message
Sven Heitmann
Sven Heitmann
StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)
Group: Forum Members
Posts: 2, Visits: 2
Hi



I'm using the Pre-Release of your Application Framework (1.4.0) and I get an error when I want to start the Visual Basic WinForms-Example or Tutorials:

"Public ReadOnly Property PrimaryKeyField() As String" wurde nicht als "Overridable" deklariert und kann daher nicht von "Public Overrides ReadOnly Property PrimaryKeyField() As String" überschrieben werden.   C:\Programme\MicroFour\StrataFrame\VB.NET Tutorial\Tutorial_WinVB_14\OrdersBO.Designer.vb





I have the german version of Visual Studio... so I am sorry for non-english errormessages...



The problem is that the Property PrimaryKeyField was not declared as Overridable, so I can not override it in the subclass...



Shall I download version 1.3.0 instead or is there some quick solution?



Best regards

Sven
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Sven,

Yes, sorry about this.  The tutorials on the pre-release have not bee updated so you are getting the error because the PrimaryKeyField is now an array instead of a String.  THis was added to support compound primary keys.  You can resolve this error yourself if you would like by changing the line in error to something like this:

Me.PrimaryKeyField = New String() {"TheFieldname"}

ALso, we will have the official 1.4 release available next week and the tutorials will be updated as well Wink  Let me know if this doesn't answer your question.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search