public override bool Equals(object obj) { var other = obj as PersistedGrantModel; if (other == null) { return(false); } var result = ClientId.SafeEquals(other.ClientId) && CreationTime.SafeEquals(other.CreationTime) && Data.SafeEquals(other.Data) && Expiration.SafeEquals(other.Expiration) && Key.SafeEquals(other.Key) && SubjectId.SafeEquals(other.SubjectId) && Type.SafeEquals(other.Type); return(result); }