Skip to content

DevExpress-Examples/XPO_how-to-generate-a-sequential-number-for-a-business-object-within-a-database-transaction-e2620

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

How to generate a sequential number for a business object within a database transaction

This is a general solution, showing how to use the ExplicitUnitOfWork class to generate sequential numbers that can then be used as user-friendly identifiers in documents, as invoice line numbers, etc. The ExplicitUnitOfWork class is used to ensure that the assignment of the sequential number will be a part of a database transaction that results in the successful saving of the document.
Hence, the current solution will also work in a scenario with high-volume of concurrency transactions.

See also:
XAF: How to generate and assign a sequential number for a business object within a database transaction, while being a part of a successful saving process (XAF)


About

.NET, Frameworks (XAF & XPO), eXpress Persistent Objects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •