Losting metadata in C# RavenDb client when using IAsyncDocumentSession.StoreAsync() #17523
-
Hello dear, how are your? Wish you're good! I'm trying to use the metadata "@expires" in my code as showed in the example below:
In some of projects that I work we use StoreAsync to bring some entity from a session to a different and new session on actual service (as example above Foo and Foo1). I don't want to lost the metadata I've set in previous session. Below I'm putting the entire code to reproduce case is needed. Tks for the help!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, the metadata is not transferred between the sessions when entity is passes (Foo in your case), you would have to perform |
Beta Was this translation helpful? Give feedback.
Hi, the metadata is not transferred between the sessions when entity is passes (Foo in your case), you would have to perform
session.LoadAsync
in the 2nd session to get the metadata.