最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Models

网络文摘 William 1314浏览 0评论

To work with models in the model store, you use tools in Microsoft Visual Studio. You can create new models and change parameters for existing models.

Conceptual overview

Follow this Office Mix to learn about models and packages in Microsoft Dynamics AX and how they relate to each other.

Creating a new model

You use the Create model wizard to create new models. You can access this wizard from Model Management on the Dynamics AX menu.

You can create two types of models:

  • A model that is deployed in its own package – You can use this type of model to create new model elements, and extend the metadata and business logic of referenced models. The wizard lets you select the referenced models. This type of model is compiled into its own assembly and binaries, and will simplify and reduce the cost of upgrades, deployment, and application lifecycle management in general.
  • A model that is a part of an existing package – You can use this type of model to perform advanced customizations, such as overlayering source code and metadata.

When the Create model wizard is completed, if you chose to create a new project, you will be prompted to specify a name and location for it.

Updating model parameters

If you must change the parameters for a model, you can use the Update model parameters dialog box.

  1. On the Dynamics AX menu, point to Model Management, and then click Update model parameters.
  2. In the Model name field, select the model to update parameters for.
  3. Update the parameters as you require.
  4. Click Next.
  5. Update the dependency information for the current model, if changes are required.
  6. Click Next.
    The summary information for the model is displayed.
  7. Click Finish.

The updated model parameters become effective only after you restart Visual Studio.

Viewing package dependencies

You can create a graphical representation that shows which packages (and their models) have dependencies on other packages. On the Dynamics AX menu, point to Model Management, and then click View package dependencies. A Directed Graph Markup Language (DGML) diagram will be generated for the current packages and their models. This diagram is a collection of interdependent nodes, each of which represents a package. Each node lists all the models that belong to that package. Additional tools let you enhance or simplify the diagram. For example, you can add comments, move nodes around, or remove nodes.

You can also view package dependencies of a single model by following these steps:

  1. Make sure the Application Explorer is in Model view: Right-click on the AOT node and select Model view.
  2. Right-click on any model and select View package dependencies > View outgoing references.

This will generate a graph of all packages that the selected model depends on.

viewdependencies2

directorydependencies

转载请注明:ww12345678 的部落格 | AX Helper » Models

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址