public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj is ISqlQuerySimple asSimple) { return(_simple.Equals(asSimple)); } if (obj is SqlQueryFromSimple asQuery) { return(_simple.Equals(asQuery._simple)); } return(false); }
public override bool Equals(object obj) { if (!(obj is SqlQuerySimpleCombined <T> typed)) { return(false); } return(_cacheMappings == typed._cacheMappings && _query.Equals(typed._query) && _materializer.Equals(typed._materializer)); }