Giter Club home page Giter Club logo

dynamicscrm-template-based-code-generator-plugin's Introduction

DynamicsCrm-Template-based-Code-Generator-Plugin

Join the chat at https://gitter.im/yagasoft/DynamicsCrm-TemplateBasedCodeGeneratorPlugin


An XrmToolBox plugin that can be used to generate Early-bound code from a CRM Schema using a customisable T4 Template.

Features

  • Preserved the original CrmSvcUtil structure and logic.
  • Customize the way the code is generated.
    • You get a default T4 template for the code that is generated, with a multitude more features than the official tool (features below).
    • You can rewrite the whole template if you wish for any possible requirements.
  • Replaced the SDK types with .NET types.
  • Generate only what's needed
    • Only choose the entities required.
    • Only the fields required.
  • Additional control
    • Option to use display names of entities and fields as variable names instead of logical names.
    • Override field names inside the tool's UI.
    • Ability to Lock variable names to avoid code errors on regeneration.
  • Support for strongly-typed alternate keys, for entities and Entity References.
  • Add annotations for model validation.
  • Generate metadata.
    • Field logical and schema names.
    • Localised labels.
  • Automatically limit attributes retrieved from CRM on any entity in a LINQ to the ones choosen (filtered) in the tool (check new entity constructors).
  • Many options to optimise generated code size even further.
  • Generate concrete classes for CRM Actions.
  • Support bulk relation loading.
    • Support filtering on relation loading.

Usage

Install (here).

  • Load data
  • Choose entities
  • Optionally edit the default T4 Template
  • Generate
  • Save output CS code

A more sophisticated Visual Studio Extension can be found at VS Marketplace.

The engine for this Plugin and the VS Extension is the same. The settings and T4 Templates can be used for both (with minor modifications).

You can read a quick overview of the tool and its functionality here.

Changes

  • Check Releases page for the later changes

v1.0.0.3 to v2.3.1.1 (since 2020-08-25)

  • Added: all missing features from VS extension (click on 'Quick Guide' for more info), except Contracts
  • Added: keep track of paths (settings, template, and code) used in previous sessions and the links between them
  • Added: recent settings list (load history)
  • Added: reset option for the template text
  • Added: toast notification for clearer status
  • Added: Filter Details window row filtering
  • Improved: load and save logic
  • Improved: filtering feature now works over logical and display names, and renames
  • Changed: updated package name
  • Updated: latest custom libraries
  • Fixed: assembly issues
  • Fixed: layout issues
  • Fixed: fixed cancel button
  • Fixed: issues
  • Fixed: generated code 'labels' syntax error
  • Fixed: mishandling errors
  • Fixed: template issues

v1.0.0.1 (2020-08-24)

  • Initial release

Copyright © by Ahmed Elsawalhy (Yagasoft) -- GPL v3 Licence

dynamicscrm-template-based-code-generator-plugin's People

Contributors

ahmedelsawalhy avatar gitter-badger avatar yagasoft avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gitter-badger

dynamicscrm-template-based-code-generator-plugin's Issues

Sorting the crmSchema.json file to prevent large differences in source control.

To prevent large differences between the crmSchema which is already generated and in source control and the version we're about to save, we've updated the function buttonSaveSettings_Click and buttonSaveAsSettings_Click locally, so it will sort the crmEntityProfiles object by its EntityLogicalName. This helps us to merge the crmSchema between branches in source control.

Could you please consider building a new version to make this possible? Thanks, see screenshot for possibile solution.

image

Unable to Update to v2.5.1.1 from v2.4.1.2

I'm trying to update the XRMToolbox plugin to v2.5.1.1 from v2.4.1.2, but upon restart, it is not updated and the Tool Library says an update is still available. This is due to the DLL for 2.5.1.1 still having a Assembly/File Version set to 2.4.1.2. Can you publish a new DLL for the 2.5.1.1 version with the matching Assembly/File Version?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.