We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
as a user, I want to be able to select which columns to export and get the export for selected columns only.
For example we have User model like this:
User
public class Person { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string NationalCode { get; set; } public string Tel { get; set; } }
and Mapper class:
public class ExportProfile: ExportMapper<Person> { public ExportProfile(IWorkbook workbook): base(workbook) { _ = CreateMap() .ForColumn("A", x => x.FirstName, opt => opt.WithHeader("Name")) .ForColumn("B", x => x.LastName, opt => opt.WithHeader("Family")) .ForColumn("C", x => x.NationalCode, opt => opt.WithHeader("National Code")) .ForColumn("D", x => x.Tel , opt => opt.WithHeader("Telephone")) }
but we just want to get Excel export with two fields FirstName and LastName
FirstName
LastName
The text was updated successfully, but these errors were encountered:
doroudi
No branches or pull requests
as a user, I want to be able to select which columns to export and get the export for selected columns only.
For example we have
User
model like this:and Mapper class:
but we just want to get Excel export with two fields
FirstName
andLastName
The text was updated successfully, but these errors were encountered: