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

Notifications

Announcements

No record found.

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,284 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans