You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Johannes Rauber created an issue — 29th February 2016, 12:54:58:
JSON.NET or XmlSerializer
Nathan Brown added a comment — 14th August 2016, 19:58:29:
Can serialization be made an optional feature instead of switching it out? Obviously SerializableType would be disabled. What besides second-level caches would be otherwise affected?
Nathan Brown added a comment — 16th July 2017, 20:15:19:
With .NET Core 2.0, SerializableType actually works, but most other binary serialization used throughout NHibernate do not work. Things like serializing the configuration or a session do not work because those types include fields that are System.Type, System.Reflection.MethodInfo, and System.Reflection.FieldInfo.
Frédéric Delaporte added a comment — 16th July 2017, 20:40:06:
I do not believe second level cache uses binary serialization.
For me, serialization is mainly a session feature used in some patterns like long conversations, allowing to serialize the session, dispose of it, then later deserialize it and go on with the "unit of work". I do not know if this feature is much used. From my point of view (which maybe lacks some reasons about why we can serialize sessions, session factories, ...), we could choose to not support serialization when targeting .Net Core / Standard.
The text was updated successfully, but these errors were encountered:
.Net Core and .Net Standard support is done, with serialization support delegated to using serialization surrogates. This surrogates can be provided by the user. NHibernate 5.2 will provide default ones, see #1693. And see here for how these default ones could be used.
An update about:
What besides second-level caches would be otherwise affected?
I do not believe second level cache uses binary serialization.
In fact it depends on the cache provider. Non distributed ones usually do not use it, while distributed ones may use it. So that part is a cache provider subject, not a core NHibernate one. On NHibernate side, the entities to be cached are disassembled in an object array representation made of simple types, and that is this object array which is actually cached. No binary serialization is involved for that.
Uh oh!
There was an error while loading. Please reload this page.
Johannes Rauber created an issue — 29th February 2016, 12:54:58:
Nathan Brown added a comment — 14th August 2016, 19:58:29:
Nathan Brown added a comment — 16th July 2017, 20:15:19:
Frédéric Delaporte added a comment — 16th July 2017, 20:40:06:
The text was updated successfully, but these errors were encountered: