mstaples84 / EdiHelper

EdiHelper is a C# Library to map objects of any type to EDIFACT Data and easily create documents in the EDI Format.
0 stars 0 forks source link

EdiList inside a list #2

Open GH-Sensemaking opened 3 years ago

GH-Sensemaking commented 3 years ago

Hi again,

Is it possible to nest EdiLists? I have a segment group that repeats within a repeating segment group. I am unable to get the desired output. Below is a bit more detail - do let me know if I can provide any more.

My expected output is:

ITEM: 1 LIST: 1 LIST: 2 ITEM: 2 LIST: 5

but the actual is ITEM: 1 LIST: 1 LIST: 2 ITEM: 2 LIST: 1 LIST: 2

        [EdiList(Group = 25)]
        public List<ITEM> Positions { get; }

and inside Item

        [EdiList(Group = 99)]
        public List<LIST> NewList { get; set; }
NewItemName ......
mstaples84 commented 2 years ago

The implemented structure hasn't dealt with this scenario. If you have managed to implement a solution based on this structure, I'm happy to invite you as a collaborator on this.