Replies: 2 comments
-
For date formatting, you can accomplish this by removing the
The CsvOutputFormatter accepts a delegate that allow setting the various CSV options supported by the Sylvan CSV library, which includes date formatting. The header name mapping is not currently supported, but it should be. This would be added via the Sylvan.Data library. Currently, the data binder (which binds DbDataReader to object instances) code in that library uses the |
Beta Was this translation helpful? Give feedback.
-
Created #231 to track that work. |
Beta Was this translation helpful? Give feedback.
-
Is there a means to format output generically?
For example, CsvHelper uses class attributes such as
[Format("yyyy-MM-dd")] DateTime MyDate;
or[Name("Some Header Name")] string CatName;
. If not, is this within the realm of practicality while maintaining a huge performance advantage over CsvHelper?My context is using the CsvOutputFormatter as part of a web service.
Beta Was this translation helpful? Give feedback.
All reactions