MethodType Property (Upgrade Codeunits)
Sets the type of method in an upgrade codeunit.
Applies To
AL methods on upgrade codeunits. An upgrade codeunit is codeunit that has the SubType Property (Codeunit) set to Upgrade.
Property Value
Value | Description |
---|---|
Normal | Acts as normal method. |
UpgradePerCompany | Provides instructions for upgrading data in a business data table. When you perform a data upgrade, these methods are run for all companies in the database, where each method is executed within its own system session on Dynamics 365 Business Central service that connects to the specific company. You typically use this type of method when the data in the table that you upgrading is company-specific, as specified by the table's DataPerCompany Property. |
UpgradePerDatabase | Provides instructions for upgrading data in a business data table. These methods are executed once during an upgrade process, in a single system session on Dynamics 365 Business Central service that does not open any company. You typically use an UpgradePerDatabase method when the data in the table that you are upgrading is not company-specific. This can prevent locking issues when upgrade methods are run in parallel mode. |
TableSyncSetup | Provides instructions about how to synchronize the table schemas in the business database with the table definitions. |
CheckPrecondition | Provides logic that checks conditions that must be met in order for the data upgrade process to continue and start running the Upgrade methods. |
See Also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應