MongoDB.Driver UpdateMany - обновить поле на основе другого поля
Я хотел бы установить поле на 4 символа справа от другого поля в моем объекте Cache. Я хочу Cache.Number.Substring(Cache.Number.Length - 4).
Как мне сослаться на мои поля Cache в UpdateBuilder?
Спасибо.
UpdateDefinitionBuilder<Cache> updateBuilder = Builders<Cache>.Update;
UpdateDefinition<Cache> update = (updateBuilder.Set(r => r.NumberRight, *My Question*));