Albanian Early Bound

This XrmToolBox tool allows you to generate early-bound entity classes only for the selected columns or relationships of the selected tables to minimise the assembly size (developed by Betim Beja).

The "CrmSvcUtil" tool from Microsoft generates early-bound .NET Framework classes that represent the entity data model. But without creating an extension, this tool generates the classes for all tables in the environment and only a few of them are required. As a result, the size of the file generated and the compiled assembly can be really big.
To minimise the size of the generated file, you can use this tool to generate only for the tables used in the project and filter on a more granular level to only include certain columns or relationships.
  • Tool Information
  • Documentation
  • Functionalities
    • Generate early-bound entity classes code file (Fig. 1, Pt. 1)
    • Generate the file via command-line outside of the XrmToolBox
      • Copy the command after generating a model in the menu appears on right-click of the output window (Fig. 1, Pt. 14)
    • Additionally, the tool can
      • Get metadata of all tables/columns/relationships in the environment (Fig. 1, Pt. 2)
      • Download the latest version of CrmSvcUtil.exe (Fig. 1, Pt. 3)  (Fig. 2)
      • Save the setting (namespace, output file path, etc.) for each environment (Fig. 1, Pt. 4 and Pt. 5)
      • Select tables/columns/relationships to be generated on a granular level
        • Select the whole table (Fig. 1, Pt. 6)
        • Select all columns of the table (Fig. 1, Pt. 7)
        • Select all relationships of the table (Fig. 1, Pt. 8)
        • Select a specific column of the table (Fig. 1, Pt. 9)
        • Select a specific relationship of the table (Fig. 1, Pt. 10)
        • Show the context menu on right-click of the metadata tree nodes
          • Select all or none of the tables (Fig. 1, Pt. 11)
          • Select as per last model generation (Fig. 1, Pt. 12)
      • Show the tool console log in the output window (Fig. 1, Pt. 13)
  • Similar Tools

Fig. 1 - Table, Column, Relationship Tree Nodes Selection and Tool Settings

Fig. 2 - Get Core Tools (CrmSvcUtil.exe)

This is part of the #TooLDR series where I test and review the tools for Power Platform. You can check out the information for the other tools on this page.

Comments

Popular Posts