Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Monday, September 5, 2011

Naming conventions in Microsoft Dynamics AX

  • Application object names are mixed case. The first letter of the name is uppercase as is the first letter of each word in the name. This is called Camel casing (for example: SalesFormLetter).
  • Methods, variables, and functions have mixed case names with a lowercase first letter. This is called Pascal casing (for example: initFromSalesTable).
  • Primitive variable types use lowercase names (for example: str).
  • All names should be in U.S. English.
  •  Be consistent while naming.
  •  Only tables, base enums, and extended data types should have the prefix 'DEL_'. This prefix is used to indicate that the element will be removed in the next version, and is used by the data upgrade scripts in AX.
  • To learn more about the different best practices in AX please check out the Developer
    Help file.
  •  
  • When writing comments in the code you can either use a one-line comment or a multi-line comment. A one-line comment is written like this:
    // This is a one line comment
    A multi-line comment is written like this:
    /* This comment spans over
    multiple lines.
    This is the last line of this comment */
    Comments are color-coded green in the editor window.

No comments:

Post a Comment

Archives