<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : NumericIdGenerator in winforms</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : NumericIdGenerator in winforms</description>
  <pubDate>Wed, 13 May 2026 01:03:12 -700</pubDate>
  <lastBuildDate>Mon, 17 Sep 2012 20:15:01 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3618</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>NumericIdGenerator in winforms : Hi Kimj,If this feature is incorporated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14466#14466</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=863" rel="nofollow">Sakar SR</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 17-Sep-2012 at 8:15pm<br /><br />Hi Kimj,<br><br>If this feature is incorporated please let all us know.<br><br>Thanks for all your support. Have a nice day and good health.<br><br>with love for <br>sakar SR.<br><br>]]>
   </description>
   <pubDate>Mon, 17 Sep 2012 20:15:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14466#14466</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms :   Unfortunately the UniqueIdCollection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14464#14464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 17-Sep-2012 at 12:57pm<br /><br />Unfortunately the UniqueIdCollection doesn't have enough information to allow you to access the entity for which the temp id was assigned.&nbsp; There's also not anything else, such as an EntityManager, provided to the IdGenerator which could help.&nbsp; <div>&nbsp;</div><div>We might need to open a feature request to support this.</div><div>&nbsp;</div><div>For now, the only workaround I can think of is somewhat complicated - it would involve implementing a custom EntityServerSaveInterceptor and storing its EntityManager (or sufficient information for your pooling logic)&nbsp;in a thread local variable, which you would then use in your IdGenerator.</div>]]>
   </description>
   <pubDate>Mon, 17 Sep 2012 12:57:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14464#14464</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms : Hi Kimj,Thanks for the support.We...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14462#14462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=863" rel="nofollow">Sakar SR</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 17-Sep-2012 at 11:44am<br /><br />Hi Kimj,<br><br>Thanks for the support.<br><br>We managed to convert the  pooledNumericId generator, and every thing went well. Only problem is <br><br>If we create five records, and i delete any one of them and save the records, the last NextId holds 5&nbsp; insisted 4. it takes the deleted record into count. <br><br>Is there a way to check the UniqueIdCollection for deleted records, or is there a way to check the EntityAspect of the record,<br>so that i can omit the tempId form entering the pool.<br><br>Have a nice day.<br><br>]]>
   </description>
   <pubDate>Mon, 17 Sep 2012 11:44:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14462#14462</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms :   If you need help converting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14459#14459</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 16-Sep-2012 at 6:14pm<br /><br />If you need help converting your DevForce Classic code our Professional Services group is a better resource than tech support.<div>&nbsp;</div><div>If you don't wish to engage Professional Services, then I would start by changing the Imports statements, and also look at the DF 2010 IIdGenerator interface definition, which does have slight changes.&nbsp; Your pooling logic should not require changes, other than removing the RdbKey and AdoHelper.&nbsp;&nbsp; For more information on the IIdGenerator, see <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/create-custom-id-generati&#111;n" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/create-custom-id-generation</a>.</div>]]>
   </description>
   <pubDate>Sun, 16 Sep 2012 18:14:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14459#14459</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms : Hi Kimj,Thanks for your help....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14458#14458</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=863" rel="nofollow">Sakar SR</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 15-Sep-2012 at 10:36pm<br /><br />Hi Kimj,<br><br>Thanks for your help. we tried to convert the the pooledNumericId generator, but we could not achieve what we want.<br>I think we left out some thin or other.&nbsp; This the classi version of the pooledNumericId generator in VB.Net<br><br><a href="http://www.mediafire.com/?7twmks4e3bicqtz" target="_blank">www.mediafire.com/?7twmks4e3bicqtz</a><br><br>http://www.mediafire.com/?7twmks4e3bicqtz<br><br>Please help to correct this code, to make it suitable for&nbsp; DevForce 2010 version either in C# or Vb.Net.<br>Have a nice day.]]>
   </description>
   <pubDate>Sat, 15 Sep 2012 22:36:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14458#14458</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms :   The IIdGenerator interface...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14456#14456</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 15-Sep-2012 at 11:21am<br /><br />The IIdGenerator interface in DevForce 2010 is almost unchanged from the interface in DevForce Classic, and you should be able to upgrade your pooled Id code to DevForce 2010 without a problem.&nbsp; The RdbKey and AdoHelper classes are gone, but you can directly use ADO.NET to query and save to your table.&nbsp; See the code in the sample for how the EdmKey and DbProvider are used.]]>
   </description>
   <pubDate>Sat, 15 Sep 2012 11:21:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14456#14456</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms : Hi Kimj,I am porting my applications...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14450#14450</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=863" rel="nofollow">Sakar SR</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 14-Sep-2012 at 8:57pm<br /><br />Hi Kimj,<br><br>I am porting my applications from DevForce Classic to DevForce 2010, in classic version we have used <b>pooledNumericId </b>generator to generate primary key values, we want to do the same in this version without altering the data base. is this possible. please let me know is there any othe way to generate unique key value for each table without&nbsp; using the database <br>way, like GUID, Autoincrement etc., our primary field is declared has big integer.<br><br>looking for your help. have a nice day.<br><br><br>]]>
   </description>
   <pubDate>Fri, 14 Sep 2012 20:57:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14450#14450</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms :    Hi Sakar,Are you referring...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14397#14397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 11-Sep-2012 at 8:34am<br /><br />Hi Sakar,<div>&nbsp;</div>Are you referring to the DevForce Classic or DevForce 2010 documentation?&nbsp; The only documentation for the NumericIdGenerator sample in DevForce 2010 is here - <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-idgenerator" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-idgenerator</a>.&nbsp; <div>&nbsp;</div><div>The NumericIdGenerator is a sample implementation of the IIdGeneratorInterface, and can be used "as is" or modified to suit your needs.&nbsp; The sample logic always allocates a whole block of ids to be used globally.&nbsp; To change this you'll need to modify the GetRealIdMap logic and related code.&nbsp; From each UniqueId in the collection passed you can obtain the&nbsp;DataEntityProperty and from that the EntityType to discover which entity types need real ids, and modify the allocation logic and SQL queries as needed.</div><div>&nbsp;</div><div>In DevForce 2010 we usually find that Guids make better key fields, since once assigned they are permanent and no temporary-to-real id fixup is required.&nbsp; Database identity columns are another option:&nbsp; id fixup is required, but DevForce handles all the temporary id allocation and fixup for you.</div>]]>
   </description>
   <pubDate>Tue, 11 Sep 2012 08:34:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14397#14397</guid>
  </item> 
  <item>
   <title>NumericIdGenerator in winforms : Hello,I implemented theNumericIdGenerator...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14396#14396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=863" rel="nofollow">Sakar SR</a><br /><strong>Subject:</strong> 3618<br /><strong>Posted:</strong> 11-Sep-2012 at 4:22am<br /><br />Hello,<br><br>I implemented the<br><h1>NumericIdGenerator </h1><p>in my winforms application. as per the manual. creating a table for NextId, and entering all the tables name it.</p><p>but when i run the application it only generating from the GLOBAL field. Is there any setting to be done in config file are set any other aspect to get unique ids for each table.</p><p>Pleas help, have a nice day.</p><p><br></p><p><br></p>]]>
   </description>
   <pubDate>Tue, 11 Sep 2012 04:22:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3618&amp;PID=14396#14396</guid>
  </item> 
 </channel>
</rss>