[
https://issues.apache.org/jira/browse/IGNITE-20584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043844#comment-18043844
]
Pavel Tupitsyn commented on IGNITE-20584:
-----------------------------------------
https://github.com/apache/ignite-3/commit/7c946df45e46622a8c2337db8a33fb9b92189ed7
> .NET: Thin 3.0: Interfaces for manual, reflection-free serialization (AOT
> friendly)
> -----------------------------------------------------------------------------------
>
> Key: IGNITE-20584
> URL: https://issues.apache.org/jira/browse/IGNITE-20584
> Project: Ignite
> Issue Type: Improvement
> Components: platforms, thin client
> Affects Versions: 3.0.0-beta1
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Critical
> Labels: .NET, ignite-3
> Fix For: 3.2
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Add public interfaces for "manual" serialization implementation, similar to
> [IBinarizable in Ignite
> 2.x|https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/Apache.Ignite.Core/Binary/IBinarizable.cs]
> * Provides more control over serialization
> * Avoids reflection
> * Prerequisite for source-generated serializers: IGNITE-20474
> The challenge is that the order of columns must be according to the schema.
> So Ignite should call user-provided code in the correct order, something like:
> {code:c#}
> interface IMapper
> {
> T GetColumnValue<T>(string name, ColumnType type);
> SetColumnValue<T>(string name, ColumnType type, T val);
> }
> {code}
> https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/
> See also IGNITE-26415 - this might solve both problems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)