in

CodeSmith Community

Your Code. Your Way. Faster!

Is the PK can't be the bigint?

Last post 01-30-2007 2:26 AM by swin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-29-2007 4:20 PM

    • lin2000y
    • Top 100 Contributor
    • Joined on 11-14-2005
    • Posts 49
    • Points 1,163

    Is the PK can't be the bigint?

    when i check the TList.cs i found the index is of the type of int, so is that means if the PK of the type of bigint(int64) and if i have a tlist object with over the upbond of the int32 object in it ,will it be wrong?

     

    • Post Points: 35
  • 01-30-2007 2:26 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 921
    • Points 34,675

    Re: Is the PK can't be the bigint?

    No, the index you are refering to is just the position within the TList.  A list just stores references to other objects and these objects can contain whatever you like.

    The TList is a specialisation of the BindingList which uses int32 as its index - which represents signed integers with values ranging from negative 2,147,483,648 through positive 2,147,483,647.  Which is quite a lot and if you needed more in your list I'd strongly recommend doing things a different way!

    hth

    swin 

    -------------------------------------------------
    Member of the .NetTiers team
    -------------------------------------------------
    Filed under:
    • Post Points: 5
Page 1 of 1 (2 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems