New Posts New Posts RSS Feed: How to code GUID as primary key in business object Create method
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

How to code GUID as primary key in business object Create method

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: How to code GUID as primary key in business object Create method
    Posted: 12-Jul-2007 at 3:39pm
How do you implement GUID as primary key in business object create method.
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 12-Jul-2007 at 3:40pm

Use UDF syntax.  For example:

BusinessObject["Id"] = System.Guid.NewGuid();

Note that indexing is required

BusinessObject.Id = System.Guid.NewGuid();

will normally not work since the "Id" column is usually ReadOnly.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down