In which (is) layer(s) of a DDD project should I implement a Import/Export text files and reports feature

Asked

Viewed 72 times

0

I have a C# project using the DDD + EF Core standard, based on a very good Eduardo Pires project: insert link description here

I need to implement two resources: Import/Export (TXT, CSV, DOC, XLS...) and Reports.

My question is this::

In which layer(s) do I implement these two functionalities? In the case of import/export, it will be necessary to create functions (similar to an EF repository)... In which layer would they be? ... And the reports, for example, if I used Crystal or another component, where they would be installed?

If someone has an example project or detailed tutorials that can help me, I really appreciate it, because I’ve already spent a lot of time mining this information on the net, but I haven’t found anything consistent.

I hug you all and thank you very much!

  • Based on this model project I would create something like this: Infra.Crosscutting.Reports, for example.

1 answer

0


Dude, in my design, I would create in the Infra layer, as a service, and everything connected to the process of these files would use there and put my code to use it as that uses a login service, access to the bank, etc...

Now if the files are part of the entities, they are their attributes, I would try to create the files or reports as entities.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.