Migration: Changes in Conventions
All conventions needs to be set before
DocumentStore.Initialize is called.
InvalidOperationException will be thrown.
Raven.Client.Document.DocumentConvention has been renamed and moved to
Entity Serialization and Deserialization
Serialization and deserialization of entities can be customized using:
CustomizeJsonSerializer = serializer => throw new CodeOmitted(),
DeserializeEntityFromBlittable = (type, blittable) => throw new CodeOmitted()
In order to customize bulk insert serialization you can use
TrySerializeEntityToJsonStream = (entity, metadata, writer) => throw new CodeOmitted(),
DocumentKeyGenerator has been removed. Use
DefaultUseOptimisticConcurrency has been renamed to
FindIdentityPropertyNameFromEntityName has been renamed to
FindTypeTagName and FindDynamicTagName
It has been removed. Only string identifiers are supported.
The client will failover automatically to a different node in the cluster.
The Read requests can be customized by using the
The support for DTC transactions has been dropped.
Removed. The multi gets are processed in async manner on the server side.
ShouldAggressiveCacheTrackChanges and ShouldSaveChangesForceAggressiveCacheCheck
The client listens to changes by default and evicts cached items if they change on the server side.
Removed. Indexes are automatically replicated within the cluster. Transformers has been removed completely.
ReadBalanceBehavior.FastestNode to if you need to ensure that get requests will executed against the fastest node in the cluster.
Removed. In 4.0 queries on IDs are supported by default.
Removed. There is no longer option to determine caching per request. Cache size can be controlled using