Ticket Q552435
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

How to customize the UnitOfWork behavior in XPO-based XAF applications

Using inherited UnitOfWork object

created 11 years ago

Hi,

We want to use a derived class of UnitOfWork instead of XPO UnitOfWork. It is because we want to add additional data to UnitOfWork object to implement some features. Is there any way I can use my derived UnitOfWork class instead of default UnitOfWork class in XPObjectSpace?

Regards,
Vinayak Hegde

Answers approved by DevExpress Support

created 11 years ago (modified 11 years ago)

Hi Vinayak.
To use a custom UnitOfWork in XAF, create a custom XPObjectSpaceProvider descendant and override the CreateUnitOfWork method.
See also:
How to use a custom ObjectSpaceProvider in XAF

    Comments (2)

      Thanks! I will explore this option.

        Thanks! I will explore this solution!

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.