In this answer to a recent question, I was advised to
"be wary of making every property in your domain model have public getters and setters. That can lead you to an anemic domain model."However I then encounter the problem that an entity with private setters, like this:
public class Phrase { public int PhraseId { get; private set; } public string PhraseText { get; private set; } }
cannot be JSON-serialized from a View to a controller (using ASP.NET MVC). This is due to the private setter.
How would you allow serialization with private setters?