Exemplo n.º 1
0
 public NotLinqSpecification(LinqSpecification <TType> spec)
 {
     _spec      = spec ?? throw new ArgumentNullException(nameof(spec));
     IsTracked  = spec.IsTracked;
     IsDistinct = spec.IsDistinct;
     Modifiers  = spec.Modifiers;
 }
Exemplo n.º 2
0
 public OrLinqSpecification(LinqSpecification <TType> leftSpec, LinqSpecification <TType> rightSpec)
 {
     _leftSpec  = leftSpec ?? throw new ArgumentNullException(nameof(leftSpec));
     _rightSpec = rightSpec ?? throw new ArgumentNullException(nameof(rightSpec));
     IsTracked  = leftSpec.IsTracked || rightSpec.IsTracked;
     IsDistinct = leftSpec.IsDistinct || rightSpec.IsDistinct;
     Modifiers  = leftSpec.Modifiers.Union(rightSpec.Modifiers).ToList();
 }