Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-4406

.NET: Control DateTime serialization via attribute

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • platforms

    Description

      .NET can write DateTime in internal format (preserves DateTime.Kind) and as Timestamp (does not allow non-UTC values).

      By default we use internal format. To use Timestamp user has to mark field with QuerySqlField (non obvious), or override IBinarizable.

      • Provide a dedicated attribute to enforce timestamp mode.
      • Attribute can be applied to a field, property, or a whole type
      • Provide a property on BinaryReflectiveSerializer to force Timestamp everywhere - this may be needed when class code can't be modified

      Attachments

        Activity

          People

            ptupitsyn Pavel Tupitsyn
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: