You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a little bit trouble with the deserialization of a SegmentGroup...
My Model looks like this (only the relevant parts):
publicclassEdifact_IC{publicUNB_SegmentUNB{get;set;}publicIC_MessageMessage{get;set;}publicUNZ_SegmentUNZ{get;set;}}[EdiMessage]publicclassIC_Message{
......
publicList<SG1_Ref>Ref{get;set;}
.....}//------SegmentGroups-----[EdiSegmentGroup("RFF","DTM"),EdiCondition("...","...",Path="RFF/0/0")]publicclassSG1_Reference{publicRFF_SegmentRef{get;set;}publicList<DTM_Segment>Date{get;set;}}//------Segments-----
......
[EdiSegment,EdiPath("RFF")]public class RFF_Segment
{[EdiValue("X(3)",Mandatory=true,Path="RFF/0/0")]public string Qualifier {get;set;}[EdiValue("X(70)",Mandatory=false,Path="RFF/0/1")]
public string Reference {get;set;}
.....}
If I try to deserialize following (only EDIFACT Snipped for testing): UNA:+.? ' UNB+UNOC:3+XXXXXXXXXX:500+XXXXXXXXX:500+XXXXXX:0610+XXXXXXXXX++VL' UNH+XXXXXXX+XXXXX:X:XXX:XX:2.3c' RFF+AGI:XXXXX' DTM+293:20181001060000:204' UNZ+1+XXXXXXXXXXXX'
the "RFF-Segment" property (Ref) in "SG1_Reference" is always Null. The DTM-Segment in the same SegmentGroup is correct...
Hi,
I have a little bit trouble with the deserialization of a SegmentGroup...
My Model looks like this (only the relevant parts):
If I try to deserialize following (only EDIFACT Snipped for testing):
UNA:+.? ' UNB+UNOC:3+XXXXXXXXXX:500+XXXXXXXXX:500+XXXXXX:0610+XXXXXXXXX++VL' UNH+XXXXXXX+XXXXX:X:XXX:XX:2.3c' RFF+AGI:XXXXX' DTM+293:20181001060000:204' UNZ+1+XXXXXXXXXXXX'
the "RFF-Segment" property (Ref) in "SG1_Reference" is always Null. The DTM-Segment in the same SegmentGroup is correct...
If I change the SegmentGroup Class to:
the deserialization works good, but I have now (obviously) not a RFF_Segment property but the "Qualifier" and "Reference" properties.
How do I change the SG1_Reference class that I have a RFF_Segment and a DTM_Segment property?
The text was updated successfully, but these errors were encountered: