Ejemplo n.º 1
0
        internal ComputeBinder(ODataQuerySettings settings, IAssemblyResolver assembliesResolver, Type elementType,
                               IEdmModel model, ComputeTransformationNode transformation)
            : base(settings, assembliesResolver, elementType, model)
        {
            Contract.Assert(transformation != null);

            _transformation = transformation;
            _modelID        = ModelContainer.GetModelID(model);

            this.ResultClrType = typeof(ComputeWrapper <>).MakeGenericType(this.ElementType);
        }
Ejemplo n.º 2
0
        public SelectExpandBinder(ODataQuerySettings settings, IAssemblyProvider assembliesProvider, SelectExpandQueryOption selectExpandQuery)
        {
            Contract.Assert(settings != null);
            Contract.Assert(assembliesProvider != null);
            Contract.Assert(selectExpandQuery != null);
            Contract.Assert(selectExpandQuery.Context != null);
            Contract.Assert(selectExpandQuery.Context.Model != null);
            Contract.Assert(settings.HandleNullPropagation != HandleNullPropagationOption.Default);

            _selectExpandQuery = selectExpandQuery;
            _context           = selectExpandQuery.Context;
            _model             = _context.Model;
            _modelID           = ModelContainer.GetModelID(_model);
            _settings          = settings;
            _assemblyProvider  = assembliesProvider;
        }