예제 #1
0
 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);
 }
예제 #2
0
 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));
 }