MDL Entity Syntax Reference

Reference MDL syntax for Mendix domain model entity definitions.

1|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/engalar/mxcli-taskdemo --skill mdl-entity-syntax-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: MDL Entity Syntax Reference
Source: https://github.com/engalar/mxcli-taskdemo/tree/main/TaskDemo/.claude/skills/mdl-entities
Command: npx skills add https://github.com/engalar/mxcli-taskdemo --skill mdl-entity-syntax-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a comprehensive reference for the Mendix Definition Language (MDL) syntax, helping developers avoid common parsing errors and structural mistakes when defining domain models via code.

Core Features & Use Cases

  • Syntax Validation: Provides clear examples for persistent, non-persistent, and view entities, including proper inheritance (EXTENDS) placement.
  • Association Management: Details complex association definitions, including delete behaviors like cascade and prevent.
  • Use Case: Use this reference to quickly verify the correct syntax for creating a new persistent entity with specific attributes, indexes, and associations without needing to consult external documentation.

Quick Start

Ask the assistant to generate an MDL script for a new persistent entity named Order with a status enumeration and a cascade-delete association to a Customer entity.

Frequently Asked Questions about MDL Entity Syntax Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define a persistent entity with attributes using Mendix Definition Language?

Mendix Definition Language allows programmatic domain model creation by defining persistent entities using specific MDL syntax for entity definitions and attribute modifiers. This reference provides clear examples to ensure structures adhere to MDL parsing rules.

What is the correct syntax for configuring association delete behaviors in Mendix MDL?

Association delete behaviors in Mendix MDL are configured within complex association definitions. The MDL syntax reference details specific configurations for cascade and prevent delete behaviors to ensure correct relationship management.

How does inheritance work when defining domain models via Mendix MDL code?

Inheritance in Mendix MDL code requires proper EXTENDS placement within entity definitions. The reference covers inheritance patterns to help developers avoid structural mistakes and parsing errors when building domain models programmatically.

Can I create non-persistent and view entities using MDL syntax in Mendix?

MDL syntax supports creating non-persistent and view entities in Mendix applications. The structured reference provides clear examples and validation for these entity types while ensuring adherence to MDL parsing rules.

Why does my Mendix MDL script fail to parse when defining domain models?

Mendix MDL scripts fail to parse due to common structural mistakes and syntax errors in entity definitions. This reference helps developers avoid parsing errors by providing correct syntax examples for domain model creation.

What's the best way to structure indexes and enumerations in Mendix MDL?

Structuring indexes and enumerations in Mendix MDL requires following specific attribute modifier syntax. The reference facilitates quick verification of correct syntax for creating entities with these elements without consulting external documentation.