Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

A method is related to Unit Of Work

(0) ShareShare
ReportReport
Posted on by 441

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

  • Jacky Qian Profile Picture
    Jacky Qian 441 on at
    RE: A method is related to Unit Of Work

    Hi Gunjan:


    Thanks for your reply. It works.

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: A method is related to Unit Of Work

    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. 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans