You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Npoi.Mapper currently doesn't support
ResourceManager
when using theDisplayAttribute
.Consider the follow class:
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.
The text was updated successfully, but these errors were encountered: