public static TypingSession ToDbo(Typing.TypingSession.State state) { return(new TypingSession { Id = state.TypingSessionId, CreatedByUser = state.CreatedByUser, CreatedUtc = state.CreatedUtc, Texts = state.Texts .Select(t => TypingSessionText.ToDbo(t.Value, t.Key, state.TypingSessionId)) .ToList() }); }
public void MergeFrom(TypingSessionText from) { _ = from; throw new InvalidOperationException("The TypingSessionText is immutable."); }