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

Supporting resource manager #77

Open
ptjuanramos opened this issue Mar 10, 2021 · 0 comments
Open

Supporting resource manager #77

ptjuanramos opened this issue Mar 10, 2021 · 0 comments

Comments

@ptjuanramos
Copy link

Npoi.Mapper currently doesn't support ResourceManager when using the DisplayAttribute.

Consider the follow class:

public class RecordTest {
   [Display(ResourceType = typeof(LabelResource), Name = nameof(LabelResource.Name))]
   public Name { get; set; }

   [Display(ResourceType = typeof(LabelResource), Name = nameof(LabelResource.LastName))]
   public LastName { get; set; }
}

When generating a new file the produced columns names are "Name" and "LastName", which are actually the result of the operations of nameof(LabelResource.Name) and nameof(LabelResource.LastName). This raised up my suspicion that Npoi.Mapper don't support ResourceManager.

Note: I will proceed of implementing this feature if you guys agree.

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

1 participant