donnytian / Npoi.Mapper

Use this tool to import or export data with Excel file. The tool is a convention based mapper between strong typed object and Excel data via NPOI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore Columns By Property Name (or Names)

rhoeting opened this issue · comments

First off, awesome tool! As an enhancement, would it be possible to overload the Ignore method to pass properties by property name (as a string), or list of names. Passing in property selector is handy, but it'd be nice to pass in strings.

Hi,
Thanks for your attention!
I will add an extension like this:
public static Mapper Ignore<T>(this Mapper mapper, params string[] propertyNames)
Hope this is fine.