Ask Your Question
3

Is it possible to utilize EPPlus ToCollection<T> without the need to manually map all properties of a class?

asked 2023-05-04 08:41:07 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-04 09:02:01 +0000

nofretete gravatar image

No, it is not possible to utilize EPPlus ToCollection<t> without the need to manually map all properties of a class. ToCollection<t> method requires mapping all properties of a class to the corresponding columns in the Excel worksheet. This ensures that the data is correctly and accurately transferred between the class and the worksheet. However, there are third-party libraries such as AutoMapper that can simplify the process of mapping properties between classes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-04 08:41:07 +0000

Seen: 8 times

Last updated: May 04 '23