web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Extended Data Types in comparsion with C-Sharp

(0) ShareShare
ReportReport
Posted on by 3,850

Hello I want to start a descussion about AX end their EDT.

EDT is a concept that is wery handy and when you create EDT, configure business and validadion for example.

Now when I co over to C# and there is no EDT concept. I have ahcive some goals by creating classes and use it as Data Annotations. But can someone answer me what problems EDT resolve and how can you resove it in C#.

Is a good artical about it?  

*This post is locked for comments

I have the same question (0)
  • Sandri Profile Picture
    3,850 on at

    Yes I did.

    But is any side that determine a comparsion between EDT and some anoter opportunitiesbin C#

    For example: I am in Ax and create EDT name Kennitala. In the Properties of EDT i can determine that Kemnitala EDT should only be 10 digits long AND should not have letters.

    In C# i could determine properties like this:

    Public string Kennitala { get; set; }

    But to relove all the properties who is determed in EDT in AX - write a validation class who check only 10 digits and no letter like this :

    [Kennitala]

    Public string Kennitala { get; set; }

    But the inconvinient is that the code will be longer.

    So I was wonderin to write a Struct in C# with all that limittations and proprties inside the Kennitala and miss the Data Annotation.

    Or maybe is a normal class a best solution, where I can set limitations and validation rules - and class return out the string variable named Kennitala.

    This is my thinking, but I surely want to hear from you what methids do u use when EDT is not an option.

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at

    Just an advice. Sigurdur, xD why do you torture yourself? instead of using EDT best practices was Sukrut mentioned

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    I don't think that you can compare them at all. X++ and c sharp are 2 different languages that were developed to solve different problems. In x++ edt defines label that is UI, data type and table relations that is data layer and even lookup form.

    In c sharp you prefer to keep all 3 layers Independent and you have  MVC and MVVM for that.

    EDTs help you to reuse code and  speedup development but they are tightly connected with UI and Data Access level in AX that could not be changed. In c sharp different teams could work on business logic and UI using different frameworks and approaches.

  • Suggested answer
    JII SAADUDDIN Profile Picture
    1,832 on at

    Yeah. Miroshikov he is right!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans