I\'m looking for a good way to generate a unique order ID. Can you see any problems with the code below?
int customerId = 10000000; long ticks = DateTime.UtcNow
What about having an IDENTITY field in the database do it for you?
It will also have the advantage that deleted/canceled order numbers won't be reused (which is good or may even be required for accounting).