internal LinqSpecification(ISpecificationProvider provider, ShardParams shardParams, Expression <Func <T, bool> > expr) { this.provider = provider; this.criteriaExpression = expr; this.shardParams = shardParams; this.thenByExpressions = new List <QueryOrderExpression>(); }
internal IBatisNetSpecification(ISpecificationProvider provider, ShardParams shardParams, Expression <Func <T, bool> > expr) { this.mProvider = provider; this.mShardParams = shardParams; this.mCriteriaExpression = expr; }
public XmlSpecificationCompiler( IExpressionFactory defaultExpressionFactory, IEnumerable <IXmlSpecificationCompilerOperator> extensionOperators, ISpecificationProvider resolver = null) { _resolver = resolver ?? new NullResolver(); _defaultExpressionFactory = defaultExpressionFactory; _compilerContext = new Context(this); // declare built-in operators AddOperator(new BuiltInOperator("true", CreateTrue, XmlSpecificationSchema.TrueSchema)); AddOperator(new BuiltInOperator("false", CreateFalse, XmlSpecificationSchema.FalseSchema)); AddOperator(new BuiltInOperator("equal", CreateEqual, XmlSpecificationSchema.EqualSchema)); AddOperator(new BuiltInOperator("not-equal", CreateNotEqual, XmlSpecificationSchema.NotEqualSchema)); AddOperator(new BuiltInOperator("greater-than", CreateGreaterThan, XmlSpecificationSchema.GreaterThanSchema)); AddOperator(new BuiltInOperator("less-than", CreateLessThan, XmlSpecificationSchema.LessThanSchema)); AddOperator(new BuiltInOperator("and", CreateAnd, XmlSpecificationSchema.AndSchema)); AddOperator(new BuiltInOperator("or", CreateOr, XmlSpecificationSchema.OrSchema)); AddOperator(new BuiltInOperator("not", CreateNot, XmlSpecificationSchema.NotSchema)); AddOperator(new BuiltInOperator("regex", CreateRegex, XmlSpecificationSchema.RegexStringMatchingSchema)); AddOperator(new BuiltInOperator("starts-with", CreateStartsWith, XmlSpecificationSchema.StartsWithStringMatchingSchema)); AddOperator(new BuiltInOperator("ends-with", CreateEndsWith, XmlSpecificationSchema.EndsWithStringMatchingSchema)); AddOperator(new BuiltInOperator("contains", CreateContains, XmlSpecificationSchema.ContainsStringMatchingSchema)); AddOperator(new BuiltInOperator("null", CreateIsNull, XmlSpecificationSchema.IsNullSchema)); AddOperator(new BuiltInOperator("not-null", CreateNotNull, XmlSpecificationSchema.NotNullSchema)); AddOperator(new BuiltInOperator("count", CreateCount, XmlSpecificationSchema.CountSchema)); AddOperator(new BuiltInOperator("all", CreateAll, XmlSpecificationSchema.AllSchema)); //note: "each" is a synonym for "all" - "each" is deprecated, but is still supported for backward compatibility AddOperator(new BuiltInOperator("each", CreateAll, XmlSpecificationSchema.EachSchema)); AddOperator(new BuiltInOperator("any", CreateAny, XmlSpecificationSchema.AnySchema)); AddOperator(new BuiltInOperator("case", CreateCase, XmlSpecificationSchema.CaseSchema)); AddOperator(new BuiltInOperator("defined", CreateDefined, XmlSpecificationSchema.DefinedSchema)); // add extension operators foreach (var compilerOperator in extensionOperators) { AddOperator(compilerOperator); } }
public XmlSpecificationCompiler(ISpecificationProvider resolver, IExpressionFactory defaultExpressionFactory) { _resolver = resolver; _defaultExpressionFactory = defaultExpressionFactory; _compilerContext = new Context(this); // declare built-in operators AddOperator(new BuiltInOperator("true", CreateTrue, TrueSchema)); AddOperator(new BuiltInOperator("false", CreateFalse, FalseSchema)); AddOperator(new BuiltInOperator("equal", CreateEqual, EqualSchema)); AddOperator(new BuiltInOperator("not-equal", CreateNotEqual, NotEqualSchema)); AddOperator(new BuiltInOperator("greater-than", CreateGreaterThan, GreaterThanSchema)); AddOperator(new BuiltInOperator("less-than", CreateLessThan, LessThanSchema)); AddOperator(new BuiltInOperator("and", CreateAnd, AndSchema)); AddOperator(new BuiltInOperator("or", CreateOr, OrSchema)); AddOperator(new BuiltInOperator("not", CreateNot, NotSchema)); AddOperator(new BuiltInOperator("regex", CreateRegex, RegexSchema)); AddOperator(new BuiltInOperator("null", CreateIsNull, IsNullSchema)); AddOperator(new BuiltInOperator("not-null", CreateNotNull, NotNullSchema)); AddOperator(new BuiltInOperator("count", CreateCount, CountSchema)); AddOperator(new BuiltInOperator("each", CreateEach, EachSchema)); AddOperator(new BuiltInOperator("any", CreateAny, AnySchema)); AddOperator(new BuiltInOperator("case", CreateCase, CaseSchema)); AddOperator(new BuiltInOperator("defined", CreateDefined, DefinedSchema)); // add extension operators XmlSpecificationCompilerOperatorExtensionPoint xp = new XmlSpecificationCompilerOperatorExtensionPoint(); foreach (IXmlSpecificationCompilerOperator compilerOperator in xp.CreateExtensions()) { AddOperator(compilerOperator); } _schema = CreateSchema(); }
public List<Worker> MakeWorkers(ISpecificationProvider<WorkerSpecification> specificationProvider) { return MakeWorkers(specificationProvider.GetSpecifications()); }
internal LinqSpecification(ISpecificationProvider provider) { this.provider = provider; this.thenByExpressions = new List <QueryOrderExpression>(); }
public MongoShardSessionFactory() { specificationProvider = new MongoSpecificationProvider(); mongoManager = new MongoManager(); }
public IncludeExternalDataTransformation(ISpecificationProvider specificationProvider) { _specificationProvider = specificationProvider; }
public NHibernateShardSessionFactory() { specificationProvider = new NHibernateSpecificationProvider(); manager = new SessionManager(); }
public ElementTransformerService(ISpecificationProvider specificationProvider) { _elementTransformerSpecification = specificationProvider.CreateSpecification(); }
internal NHibernateSpecification(ISpecificationProvider provider, ShardParams shardParams, Expression <Func <T, bool> > expr) { this.provider = provider; this.criteriaExpression = expr; this.shardParams = shardParams; }
public XmlSpecificationCompiler(IExpressionFactory defaultExpressionFactory, IExtensionPoint extensionOperators, ISpecificationProvider resolver = null) : this(defaultExpressionFactory, extensionOperators.CreateExtensions().Cast <IXmlSpecificationCompilerOperator>(), resolver) { }
public XmlSpecificationCompiler(string defaultExpressionLanguage, IEnumerable <IXmlSpecificationCompilerOperator> extensionOperators, ISpecificationProvider resolver = null) : this(CreateExpressionFactory(defaultExpressionLanguage), extensionOperators, resolver) { }
public XmlSpecificationCompiler(IExpressionFactory defaultExpressionFactory, ISpecificationProvider resolver = null) : this(defaultExpressionFactory, new IXmlSpecificationCompilerOperator[0], resolver) { }
public XmlSpecificationCompiler(string defaultExpressionLanguage, ISpecificationProvider resolver = null) : this(CreateExpressionFactory(defaultExpressionLanguage), resolver) { }
public LinqShardSessionFactory() { specificationProvider = new LinqSpecificationProvider(); }
public XmlSpecificationCompiler(ISpecificationProvider resolver, string defaultExpressionLanguage) : this(resolver, CreateExpressionFactory(defaultExpressionLanguage)) { }
internal IBatisNetSpecification(ISpecificationProvider provider) { this.mProvider = provider; }
public List<Task> MakeTasks(ISpecificationProvider<TaskSpecification> specificationProvider) { return MakeTasks(specificationProvider.GetSpecifications()); }
internal NHibernateSpecification(ISpecificationProvider provider) { this.provider = provider; }