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

POCO Annotation from EDI Documentation Examples #227

Open
cvboucher opened this issue Mar 11, 2022 · 1 comment
Open

POCO Annotation from EDI Documentation Examples #227

cvboucher opened this issue Mar 11, 2022 · 1 comment

Comments

@cvboucher
Copy link

I need to deserialize the following EDI format/files into POCO classes.

https://static.ark.org/eeuploads/adhe/TS130.pdf

I'm a .Net developer but brand new to EDI. Are there some examples on how to structure and annotate POCO's from the EDI documentation? I've looked at the example POCO's here but it's still not clear how to translate from the documentation to the classes.

Thanks.

@tcsyring
Copy link

tcsyring commented Apr 21, 2022

var grammar = EdiGrammar.NewX12();

 var interchange = default(GenericX12);
            using (var stream = new StreamReader(filePath))
            {
                interchange = new EdiSerializer().Deserialize<Generic834>(stream, grammar);
            }

Where GenericX12 is your POCO class.

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

2 participants