public ModelSpecifier(ModelQueryProvider Provider) { if (Provider == null) { throw new ArgumentNullException("provider"); } this.Provider = Provider; this.X = Expression.Constant(this); }
public ModelSpecifier(ModelQueryProvider Provider, Expression X) { if (X == null) { throw new ArgumentNullException("expression"); } if (!typeof(IQueryable <T>).IsAssignableFrom(X.Type)) { throw new ArgumentOutOfRangeException("expression"); } this.Provider = Provider ?? throw new ArgumentNullException("provider"); this.X = X; }