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

author
DevExpressExampleBot
Oct 15, 2024
e9cd6c1 · Oct 15, 2024

History

23 Commits
Oct 15, 2024
Sep 3, 2024
Sep 3, 2024
Apr 23, 2018
Apr 23, 2018
Apr 23, 2018
Sep 3, 2024
Nov 18, 2022

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)


Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)