How do I best setup my active record class to have a natural key. Instead of
guid as order number I want a sequence that starts with 10000 for example.

[ActiveRecord]
public class Order
{
  [PrimaryKey(PrimaryKeyType.GuidComb)]
  public Guid Id {get; set;}

  [??]
  public int OrderNumber {get; set;}
}

Note that I will still have guid as id to keep track of if it is saved or
not but I want to show the customer a more friendly order number.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to