Giter VIP home page Giter VIP logo

lcg-udg's Introduction

Welcome to @rappen!

🔢 The Numbers

Stats


💬 The Social

Twitter Follow

Website


🛠 The Stuff


🚀 The Releases

Repo NuGet AzDO GitHub
FXB Nuget AzDO GitHub
PTV Nuget AzDO GitHub
BDU Nuget AzDO GitHub
ShB Nuget AzDO GitHub
ShR Nuget AzDO GitHub
ShD Nuget AzDO GitHub
ANM Nuget AzDO GitHub
LCG Nuget AzDO GitHub
UDG Nuget AzDO GitHub
CAPIT Nuget AzDO GitHub
CAT Nuget AzDO GitHub
EPM Nuget AzDO GitHub
RRA Nuget AzDO GitHub
PAC Nuget AzDO GitHub
XIT Nuget AzDO GitHub
XRMTR Nuget AzDO GitHub
🐤 GitHub
💻 GitHub

lcg-udg's People

Contributors

daryllabar avatar maerger avatar rappen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lcg-udg's Issues

As of the newest update the Relationships checkbox causes an error

I tried selecting all different combinations of entities, including only system entities, only custom entites, a single system entity, and a single custom entity.

As I have global admin I do not think it is a permissions issue.
related error log below:

System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Where[TSource](IEnumerable1 source, Func2 predicate)
at Rappen.XTB.LCG.CSharpUtils.GetRelationships(EntityMetadataProxy entitymetadata, List1 includedentities, Settings settings) at Rappen.XTB.LCG.CSharpUtils.GetClass(List1 selectedentities, EntityMetadataProxy entitymetadata, EntityMetadataProxy commonentity, Settings settings)
at Rappen.XTB.LCG.CSharpUtils.GenerateClasses(List`1 entitiesmetadata, Settings settings, IConstantFileWriter fileWriter)
at Rappen.XTB.LCG.LCG.btnGenerate_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

When no rows available the display is empty

Selecting a combination of configuration in each of the 3 sections (Entities, Attributes, Relationships) that result in no rows leaves the grid with no header text and is visually not very nice.

image

CLI Support

Can we run this from the command line and if not, would you accept a PR along these lines?

Something like a console app or powershell script that can be run via a build process or directly from Visual Studio.

This would need to:

  • accept configuration values, perhaps from a config.json
  • consume config and output file(s) using CSharpUtils.GenerateClasses to ensure output is consistent with the GUI

Check all visible when checking an entity doesn't appear to work

If I follow the steps below then the result is not what I expect.

Steps:

  1. Tick the Check all visible when checking an entity in Attributes section
  2. Select to only should custom attributes
  3. Tick account entity
  4. Note the customised attributes appear and they are ticked
  5. Select all attributes
  6. Note the attributes all appear again and are ticked

I would expect that all attributes appear again but only the previously ticked, custom, attributes are still ticked.

owninguser Attribute

Maybe I missed this feature: Is there a way to generate a constant for the "pseudo" Attribute owninguser?

Entity Plural Names

Hi there,

This is a feature request. I couldn't find a way to generate entity plural name. It is useful when simply adding an "s" at the end of an EntityName will not work. For example, the plural for policy is policies.

Thanks.

Relative path for OutputFolder

If OutputFolder for a project is stored as a path relative to the project (configuration) file it would support distributed environments a lot better.


  • Deployment: Online
  • DB Version: 9.1.0.16843
  • XTB Version: 1.2020.4.38
  • Tool Version: 1.2020.2.1

Add regions

For readability, add regions to generated code.

Missing start remarks tag

When mutilple remarks lines are generated in the XML documentation, the /// is missing.

    public const string PrimaryKey = "cint_mms_res_subledger_rowid";
    /// <summary>Type: String, RequiredLevel: None, MaxLength: 100, Format: Text</summary>
    /// <remarks>Anger namn på händelsen, sätts vid skapande om namn är tomt.
    Namngivningsregel: Tidsstämpel - artikelnummer.
    Tidsstämpelformat: YYMMDDhhmmssffff (från UTC-tid när transaktion skapas).</remarks>

Open generated file

Prompt user to open generated file after it has been saved.


  • Deployment: Online
  • DB Version: 9.1.0.12056
  • XTB Version: 1.2020.131.378
  • Tool Version: 1.2020.1.3

CamelCased LogicalName format

Option to compose constants with camel case, based on logical name.
new_shoe_size = ShoeSize
parentcustomerid = ParentCustomerId
new_incident_type_id = IncidentTypeId

Store project config in output file

It would be very convenient if the project configuration was stored with the actual output file.
Could be included as a comment on the last line or similar.


  • Deployment: Online
  • DB Version: 9.1.0.16843
  • XTB Version: 1.2020.4.38
  • Tool Version: 1.2020.2.1

Add static texts to generated file

Add the possibility to include static texts to the generated file.
For example you might want a static file with rectangle definitions boxing entities together in the model.
That could be accomplished by either adding the line:

!include EntityBoxes.plantuml

if you have a local file defining the rectangles in the same folder, or by including the rectangles directly as static text:

rectangle Geography #LightBlue {
    entity jr_City
    entity jr_Municipality
    entity jr_County
    entity jr_PostalCode
}

rectangle Types #Silver {
    entity jr_ParentCategory
    entity jr_Category
    entity jr_Type
}

  • Deployment: Online
  • DB Version: 9.1.0.16541
  • XTB Version: 1.2020.4.38
  • Tool Version: 1.2020.2.1

Create constants for Relationship names

Suggestion: Include Relationship names in the generated constants.

Relationship relationship = new Relationship(CrmConstants.account.account_primary_contact);
_service.Associate(Contact.EntityName, contactId, relationship, relatedAccountReferences);

This improvement would remove the need to "magic string" the relationship name when instantiating Relationships to be used in Associate calls.

Define words not to "break" with camel casing

Some words are "broken" by current camel casing, need a list of exclusions from the work list.
E.g. "Country" is camel cased "CountRy" since it identifies "Count" as a valid word.


  • Deployment: Online
  • DB Version: 9.1.0.13836
  • XTB Version: 1.2020.2.37
  • Tool Version: 1.2020.2.1

Tripple slash comments

Adding correctly formatted tripple slash comments would add usability by sypplying code insigts.
Should contain CRM attribute type, max length, min/max value, format, cascade behavior etc.

"Unable to evaluate query" error when loading entities on a CRM 2011 instance

Hello,

This plugin works absolutely perfectly with our CRM 2016 instances.
However, when I attempt to load the entities when connected to our of our CRM 2011 instances I receive an error which simply reads "Unable to evaluate query"?

Is there a potential fix for this?

I'm happy to provide some more information if it is needed.

Thanks!

Exploding when opening project with missing entities

When opening a project that contains entities that do not exist in connected organization, teh tool explodes.
Show a nice message instead.


  • Deployment: Online
  • DB Version: 9.1.0.14440
  • XTB Version: 1.2020.2.37
  • Tool Version: 1.2020.2.1

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.