Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What the " start = "" " element does in [ediSegmentGroup] ? #218

Open
Janakanty opened this issue Jan 3, 2022 · 4 comments
Open

What the " start = "" " element does in [ediSegmentGroup] ? #218

Janakanty opened this issue Jan 3, 2022 · 4 comments

Comments

@Janakanty
Copy link

Janakanty commented Jan 3, 2022

I am currently testing deserialization and unfortunately some groups are disappearing. (When I write the first element of the group 18 -EQA in place of Gr18, I have fewer lines in the document) I am looking for some solutions and suddenly I stumbled upon the element " Start = "" " in EdiSegmentGroup. What does it do?

image

@Janakanty Janakanty changed the title What the " start = "" " element does in [ediSegmentGroup] What the " start = "" " element does in [ediSegmentGroup] "question:raingauge" Jan 3, 2022
@Janakanty Janakanty changed the title What the " start = "" " element does in [ediSegmentGroup] "question:raingauge" What the " start = "" " element does in [ediSegmentGroup] question:raingauge Jan 3, 2022
@GingerNinjaa
Copy link
Contributor

GingerNinjaa commented Jan 3, 2022

Hi put EQA insted of Gr18 in EdiSegmentGroup

@Janakanty Janakanty changed the title What the " start = "" " element does in [ediSegmentGroup] question:raingauge What the " start = "" " element does in [ediSegmentGroup] ? Jan 3, 2022
@Janakanty
Copy link
Author

Janakanty commented Jan 3, 2022

Done, but the groups didn't show up. I was just wondering if this library is capable of dealing with this message model? I am concerned about the EQA and EQD repeats.

image

@cleftheris
Copy link
Contributor

Hi @Janakanty and thanks for your interest in EDI.Net. To answer your original question the Start property maps to the constructor parameter startSegment (You don't need to use it explicitly).

In order to help you with an issue please make a pull request with a failing test that showcases your problem. You can check the test project for examples.

C.

@GingerNinjaa
Copy link
Contributor

Hi,

I solve this by Inheritance.

If you have SegmentGrupe17 and the first segment is EQD you should do it like this:

public class EQD
{
//some code
}

public class SG17 : EQD
{
// here you put rest of segments
}

Please remember about "decoration" like EdiSegmentGroup etc.

Regards
Damian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants