web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

A method is related to Unit Of Work

(0) ShareShare
ReportReport
Posted on by 460

Hi All, 

I'm studying Unit Of Work by the document web site : How to: Use the UnitOfWork Class to Manage Database Transactions | Microsoft Docs  and  Ax 2012 - UnitOfWork - Performance series (Part 5) | Microsoft Docs

I wonder what's the method "masterSale" as it described. I tried to find this kind of method, but I failed.

For example, the table LogisticsPostalAddress has a relation to LogisticsLocation, but I can't find a method named "LogisticsLocation" or "LocationRelatedTableRole".

And the table VendBankAccount's relation Loction_FK has the same issue.

How to solve it ? 

pastedimage1651693731433v1.png

pastedimage1651694278322v2.png

pastedimage1651694624157v3.png

Thanks

I have the same question (0)
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Jacky,

    The "CreateNavigationPropertyMethods" property on the relation must be set to "Yes" in order for this method to be available. 

    pastedimage1651703769008v1.png

    In both the examples you have considered above, this property is set to No. 

  • Jacky Qian Profile Picture
    460 on at

    Hi Gunjan:


    Thanks for your reply. It works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans