Skip to content

AutoMap/Infer TimeSpan properties by default #1705

Closed
@russcam

Description

@russcam

Reference to #1643

I think we should consider handling/inferring System.TimeSpan properties by default, storing it as a double representing the TotalMilliseconds of the TimeSpan. Storing it as a string makes less sense as you may want to query on the field and this would be unituitive on a string field.

Doing this would require a custom JsonConverter for TimeSpan.

What are your thoughts, @Mpdreamz, @gmarz?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions