protected override void ConfigureFieldGetters() { FieldsGetters.Add("id", () => ID == Constants.DefaultIndex ? null : ID.ToString()); FieldsGetters.Add("star_id", () => StarId.ToString()); FieldsGetters.Add("substance_id", () => SubstanceId.ToString()); FieldsGetters.Add("percentage", () => Percentage.ToString().Replace(",", ".")); }
public override int GetHashCode() { return(StarId.GetHashCode() + UserId.GetHashCode()); }