DIGITALLNature / DigitallPower

DIGITALLPOWER - the dotnet tool for the PowerPlatform from DIGITALL. A swiss army knife for all ALM issues where PAC still has weaknesses.
Microsoft Public License
7 stars 0 forks source link

Breaking change: namespace change for model generation and registration #66

Closed relexx closed 9 months ago

relexx commented 10 months ago

The model generation part of dgtp is currently relying on the legacy d365.extensions, which will be deprecated as soon as the new DIGITALL AssemblyPower repository is final.

As the new AssemblyPower repository will use a different namespace, we have to change the generated dgtp model namespace to DIGITALL.APower.Model. This namespace will be incompatible with the legacy D365.Extension namespace.

For this purpose, we already introduced a model.json setting named NameSpace (see dgtp Code Generation documentation) Therefore all older projects should include this additional setting, set to D365.Extension.Model to stay compatible with the legacy D365.Extension namespace.

Example model.json:

{
  "NameSpace": "D365.Extension.Model",
  "Entities": [
    "account",
    "contact"
  ],
  "Actions": [],
  "CustomAPIs": [],
  "AdditionalSdkMessages": [ "Associate", "Disassociate" ],
  "SuppressTypeScript": true,
  "SuppressMetaData": true,
  "SuppressNullableSupport": true,
  "EditableReadOnlyProperties": true,
  "UseBaseLanguage": true
}