﻿<?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 » Business Objects and Data Access (How do I?)  » BO with Guid (UniqueIdentifier) as Primary Key</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 25 May 2026 06:02:04 GMT</lastBuildDate><ttl>20</ttl><item><title>BO with Guid (UniqueIdentifier) as Primary Key</title><link>http://forum.strataframe.net/FindPost31829.aspx</link><description>I originally had a table with an Integer Primary Key that was Auto Generated (Is Identity = true) on the server.&amp;nbsp; The business object property _PrimaryKeyFields&amp;nbsp;contains the field "Id".&lt;br/&gt;&lt;br/&gt;I added a new field Guid (UniqueIdentifier) to the table&amp;nbsp;and changed the primary key to it instead of the Id field.&amp;nbsp; When I build the partial class with the Business Object Mapper, the _PrimaryKeyFields property does not contain any field names.&lt;br/&gt;&lt;br/&gt;What am I doing wrong???</description><pubDate>Fri, 15 Feb 2013 10:12:38 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: BO with Guid (UniqueIdentifier) as Primary Key</title><link>http://forum.strataframe.net/FindPost31837.aspx</link><description>Hrm. &amp;nbsp;That &lt;span style="font-style: italic;"&gt;is&lt;/span&gt; weird. &amp;nbsp;The BOMapper must have a schema off one of the meta-data queries. &amp;nbsp;</description><pubDate>Fri, 15 Feb 2013 10:12:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: BO with Guid (UniqueIdentifier) as Primary Key</title><link>http://forum.strataframe.net/FindPost31832.aspx</link><description>Found the problem. I had the same table name under a Test schema in the same database.&amp;nbsp; When I removed the primary key from it, the database object mapper picked up the primary key in the dbo schema.&amp;nbsp; Weird... </description><pubDate>Fri, 15 Feb 2013 08:35:39 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: BO with Guid (UniqueIdentifier) as Primary Key</title><link>http://forum.strataframe.net/FindPost31831.aspx</link><description>SQL Management Studio shows the key symbol but the Business Object Mapper does not.&amp;nbsp; It shows the new field, just not as a key though.&lt;br/&gt;&lt;br/&gt;I'm mapping directly to Sql.</description><pubDate>Fri, 15 Feb 2013 07:01:44 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: BO with Guid (UniqueIdentifier) as Primary Key</title><link>http://forum.strataframe.net/FindPost31830.aspx</link><description>When you go into the BO mapper, does it show the key symbol for the list view icon for the row that marks the id field?&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Are you mapping to SQL Server directly, or are you mapping to the DDT?</description><pubDate>Thu, 14 Feb 2013 16:02:43 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>