ServiceStack Entities Id имя поля

Я использую ServiceStack и хотел бы хранить объекты как хэши в Redis и получать доступ к их частям (полям) по идентификаторам без сериализации всего объекта, поэтому у меня есть вопросы:

Is there a way to use other property then "Id", to mark id field? I am using naming conventions, where id field is named like "class
name+Id". So in User class there will be UserId id field, in
Itemclass ItemId and so on.

Is the a way to update properties that were changed in the object without serializing whole object into hash and without low-level manipulations with hash command of Redis? For example, by using some sort of lambdas.

& # XA0;

User user=client.GetById(userId);
user.Name="New name";
client.Update<User>(user,u=>u.Name);

Ответы на вопрос(1)

Ваш ответ на вопрос