[jira] [Commented] (IGNITE-4406) .NET: Control DateTime serialization via attribute

2017-05-18 Thread Pavel Tupitsyn (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-4406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16015354#comment-16015354
 ] 

Pavel Tupitsyn commented on IGNITE-4406:


Merged to master: {{25bcd43a63c7d6496e92237cb965d32d4075722d}}

> .NET: Control DateTime serialization via attribute
> --
>
> Key: IGNITE-4406
> URL: https://issues.apache.org/jira/browse/IGNITE-4406
> Project: Ignite
>  Issue Type: Improvement
>  Components: platforms
>Reporter: Pavel Tupitsyn
>Assignee: Pavel Tupitsyn
>  Labels: .NET
> Fix For: 2.1
>
>
> .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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IGNITE-4406) .NET: Control DateTime serialization via attribute

2017-05-18 Thread Pavel Tupitsyn (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-4406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16015342#comment-16015342
 ] 

Pavel Tupitsyn commented on IGNITE-4406:


Added:
* {{TimestampAttribute}}, can be applied to fields, properties, or entire 
classes/structs
* {{BinaryReflectiveSerializer.ForceTimestamp}} property

> .NET: Control DateTime serialization via attribute
> --
>
> Key: IGNITE-4406
> URL: https://issues.apache.org/jira/browse/IGNITE-4406
> Project: Ignite
>  Issue Type: Improvement
>  Components: platforms
>Reporter: Pavel Tupitsyn
>Assignee: Pavel Tupitsyn
>  Labels: .NET
> Fix For: 2.1
>
>
> .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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (IGNITE-4406) .NET: Control DateTime serialization via attribute

2017-05-17 Thread Pavel Tupitsyn (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-4406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16013873#comment-16013873
 ] 

Pavel Tupitsyn commented on IGNITE-4406:


Another way we can enable control over this are 
{{BinaryConfiguration.ForceTimestamp}} and 
{{BinaryTypeConfiguration.ForceTimestamp}} properties.

> .NET: Control DateTime serialization via attribute
> --
>
> Key: IGNITE-4406
> URL: https://issues.apache.org/jira/browse/IGNITE-4406
> Project: Ignite
>  Issue Type: Improvement
>  Components: platforms
>Reporter: Pavel Tupitsyn
>Assignee: Pavel Tupitsyn
>Priority: Minor
>  Labels: .NET
> Fix For: 2.1
>
>
> .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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)