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
EdiSegmentGroup not parsing the whole Segment #36
Comments
Hi @Nekeniehl would it be possible to add a failing unit test with your sample and classes? The current solution needs VS2017 to work. Just fork the code, add your test models + sample transmission + failing unit test and make a pull request. Will look into this ASAP. On another note I think I stumbled upon a bug with the condition issue #35 and have not found the time to overcome this. |
I'm having some troubles to install the DotNetCore for VS 2015 to run the project, I will install then the community vs 2017 tomorrow and make the pull request. Thanks again! |
I might found the problem, maybe you can verified it:
The serialization serializes just the DTM for the conditional RFF named as Referenz_der_Anfrage, but if I modified the SG1 class like the following:
Both RFF are working fine. So I guess it was my bad in the using of the EdiSegmentGroupAttribute, please confirm this. |
Yes you are correct 👍 as stated on this similar issue #32 comment
Glad you managed to overcome this. Should I close the issue? |
Understood, thanks again! |
Hi there, I'm not sure if this is a bug or a bad using of EdiAttributes from my side. I have created a EdiSegmentGroup to parse to a complex type, the segment is called "SG1" which basically contains a RFF (code and qualifier) and a optional DTM(code, date, format). I have made almost the same structure with the NAD segment which is actually working fine, but not for the SG1. Here the structure I want to follow
Here a Test Message:
And here the POCO Class (Not completed)
I have try with several different configurations without success, like it is now, you will get parsed the both NAD's and SG1 date but not the reference.
I also tried to add the following lines in the Nachricht class and is working fine everything, but I think is not the correct structure since the DTM is dependent (or child) for the RFF
Hope you can help me out, thanks in advance!
The text was updated successfully, but these errors were encountered: