﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Issues to Override the Property "PrimaryKeyField"</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 05 Apr 2026 07:03:32 GMT</lastBuildDate><ttl>20</ttl><item><title>Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost798.aspx</link><description>Hi&lt;br&gt;
&lt;br&gt;
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:&lt;br&gt;
[quote]"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&lt;br&gt;
[/quote]&lt;br&gt;
&lt;br&gt;
I have the german version of Visual Studio... so I am sorry for non-english errormessages...&lt;br&gt;
&lt;br&gt;
The problem is that the Property PrimaryKeyField was not declared as Overridable, so I can not override it in the subclass...&lt;br&gt;
&lt;br&gt;
Shall I download version 1.3.0 instead or is there some quick solution?&lt;br&gt;
&lt;br&gt;
Best regards&lt;br&gt;
Sven</description><pubDate>Thu, 20 Apr 2006 08:32:31 GMT</pubDate><dc:creator>Sven Heitmann</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost837.aspx</link><description>Glad you got it going.&amp;nbsp; :)&amp;nbsp; Let me know if you have another other issues.</description><pubDate>Thu, 20 Apr 2006 08:32:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost828.aspx</link><description>Thank you for your help. :)</description><pubDate>Thu, 20 Apr 2006 03:09:33 GMT</pubDate><dc:creator>Sven Heitmann</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost819.aspx</link><description>Hey Trent--&lt;/P&gt;&lt;P&gt;No need to reply here. I went and rebuilt the business objects in the BO Mapper and these errors corrected themselves. Thanks for your help.&lt;/P&gt;&lt;P&gt;Jerry</description><pubDate>Tue, 18 Apr 2006 15:48:53 GMT</pubDate><dc:creator>Jerry Carter</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost818.aspx</link><description>Hi Trent&lt;/P&gt;&lt;P&gt;That cleared up 4 of the 8 errors that I am getting. How do I apply what you told me to the first set of errors?&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ReadOnly&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Property&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;FONT style="BACKGROUND-COLOR: #ff1111" color=#ffffff&gt;PrimaryKeyField&lt;/FONT&gt;() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"cust_pk"&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Get&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Property&lt;/FONT&gt;</description><pubDate>Tue, 18 Apr 2006 10:49:12 GMT</pubDate><dc:creator>Jerry Carter</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost816.aspx</link><description>Jerry,&lt;/P&gt;&lt;P&gt;Never feel bad for asking a question!&amp;nbsp; That's what a forum is about.&amp;nbsp; Besides, this is a very valid question.&amp;nbsp; The problem is that we have added some functionality in version 1.4 to support compound primary keys which in turn supports compound foreign keys.&amp;nbsp; This means that each of the errors requires that the definition is an array instead of a string.&amp;nbsp; To do this, the definition would be like this:&lt;/P&gt;&lt;P&gt;BusinessParentRelationship1.ForeignKeyField = &lt;FONT style="BACKGROUND-COLOR: #ffff11"&gt;New String() {&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"&lt;FONT style="BACKGROUND-COLOR: #ff1111" color=#ffffff&gt;orit_or_pk&lt;/FONT&gt;"&lt;FONT style="BACKGROUND-COLOR: #ffff11"&gt;}&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;BusinessParentRelationship1.ParentBusinessObjectType = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"StrataFrameSample.OrdersBO"&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;BusinessParentRelationship1.ParentPrimaryKeyField = &lt;FONT style="BACKGROUND-COLOR: #ffff11"&gt;New String() {&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"&lt;FONT style="BACKGROUND-COLOR: #ff1111" color=#ffffff&gt;or_pk&lt;/FONT&gt;"&lt;FONT style="BACKGROUND-COLOR: #ffff11"&gt;}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Let me know if this doesn't clear things up.&amp;nbsp; Also, the official 1.4 release will be released this week and the tutorials will be fixed as well.&amp;nbsp; Sorry for any trouble this may have caused.</description><pubDate>Mon, 17 Apr 2006 21:55:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost815.aspx</link><description>I'm having the same problem and your suggested solution gets rid of one of the errors but I am unable to run the sample. I have two different errors. I suppose I can wait until 1.4 is official but after seeing a demo over the weekend, I'm anxious to start using it. My first error repeats itself in all four business objects.&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ReadOnly&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Property&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;FONT style="BACKGROUND-COLOR: #ff1111" color=#ffffff&gt;PrimaryKeyField&lt;/FONT&gt;() &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"cust_pk"&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Get&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Property&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=2&gt;The error is on "PrimaryKeyField". VS help suggests that I use Overload or Shadow instead of Overrides.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=2&gt;The other error I get I believe you address in your post but I just wanted to make sure.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;BusinessParentRelationship1.ForeignKeyField = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"&lt;FONT style="BACKGROUND-COLOR: #ff1111" color=#ffffff&gt;orit_or_pk&lt;/FONT&gt;"&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;BusinessParentRelationship1.ParentBusinessObjectType = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"StrataFrameSample.OrdersBO"&lt;BR&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;BusinessParentRelationship1.ParentPrimaryKeyField = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"&lt;FONT style="BACKGROUND-COLOR: #ff1111" color=#ffffff&gt;or_pk&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=2&gt;The error is on "orit_or_pk" in the first line and "or_pk" in the third line. These errors occur in the Order Items business object. I have similar errors in the Orders business object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#111111&gt;I'm pretty new to VS so this may be an obvious fix for&amp;nbsp;a veteran. I hope you dont mind helping out a "newbie"&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Mon, 17 Apr 2006 18:46:29 GMT</pubDate><dc:creator>Jerry Carter</dc:creator></item><item><title>RE: Issues to Override the Property "PrimaryKeyField"</title><link>http://forum.strataframe.net/FindPost800.aspx</link><description>Sven,&lt;/P&gt;&lt;P&gt;Yes, sorry about this.&amp;nbsp; 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.&amp;nbsp; THis was added to support compound primary keys.&amp;nbsp; You can resolve this error yourself if you would like by changing the line in error to something like this:&lt;/P&gt;&lt;P&gt;Me.PrimaryKeyField = New String() {"TheFieldname"}&lt;/P&gt;&lt;P&gt;ALso, we will have the official 1.4 release available next week and the tutorials will be updated as well ;)&amp;nbsp; Let me know if this doesn't answer your question.</description><pubDate>Thu, 13 Apr 2006 17:02:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>