• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IQuerySource类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IQuerySource的典型用法代码示例。如果您正苦于以下问题:C# IQuerySource类的具体用法?C# IQuerySource怎么用?C# IQuerySource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IQuerySource类属于命名空间,在下文中一共展示了IQuerySource类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: QuerySourceReferenceExpression

    public QuerySourceReferenceExpression (IQuerySource querySource)
    {
      ArgumentUtility.CheckNotNull ("querySource", querySource);

      _type = querySource.ItemType;
      ReferencedQuerySource = querySource;
    }
开发者ID:GOArango,项目名称:arangoclient.net,代码行数:7,代码来源:QuerySourceReferenceExpression.cs


示例2: Visit

		public LambdaExpression Visit(Expression clause, System.Type resultType, IQuerySource querySource)
		{
			_inputParameter = Expression.Parameter(resultType, "inputParameter");
			_querySource = querySource;

			return Expression.Lambda(VisitExpression(clause), _inputParameter);
		}
开发者ID:pruiz,项目名称:nhibernate-old,代码行数:7,代码来源:NonAggregatingGroupByRewriter.cs


示例3: Create

 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public virtual ExpressionVisitor Create(
     EntityQueryModelVisitor queryModelVisitor, IQuerySource querySource)
     => new InMemoryEntityQueryableExpressionVisitor(
         _model,
         _materializerFactory,
         Check.NotNull(queryModelVisitor, nameof(queryModelVisitor)),
         querySource);
开发者ID:RickyLin,项目名称:EntityFramework,代码行数:11,代码来源:InMemoryEntityQueryableExpressionVisitorFactory.cs


示例4: IncludeExpressionVisitor

        public IncludeExpressionVisitor(
            [NotNull] ISelectExpressionFactory selectExpressionFactory,
            [NotNull] IMaterializerFactory materializerFactory,
            [NotNull] ICommandBuilderFactory commandBuilderFactory,
            [NotNull] IRelationalAnnotationProvider relationalAnnotationProvider,
            [NotNull] ISqlQueryGeneratorFactory sqlQueryGeneratorFactory,
            [NotNull] IQuerySource querySource,
            [NotNull] IReadOnlyList<INavigation> navigationPath,
            [NotNull] RelationalQueryCompilationContext queryCompilationContext,
            [NotNull] IReadOnlyList<int> queryIndexes,
            bool querySourceRequiresTracking)
        {
            Check.NotNull(selectExpressionFactory, nameof(selectExpressionFactory));
            Check.NotNull(materializerFactory, nameof(materializerFactory));
            Check.NotNull(commandBuilderFactory, nameof(commandBuilderFactory));
            Check.NotNull(relationalAnnotationProvider, nameof(relationalAnnotationProvider));
            Check.NotNull(sqlQueryGeneratorFactory, nameof(sqlQueryGeneratorFactory));
            Check.NotNull(querySource, nameof(querySource));
            Check.NotNull(navigationPath, nameof(navigationPath));
            Check.NotNull(queryCompilationContext, nameof(queryCompilationContext));
            Check.NotNull(queryIndexes, nameof(queryIndexes));

            _selectExpressionFactory = selectExpressionFactory;
            _materializerFactory = materializerFactory;
            _commandBuilderFactory = commandBuilderFactory;
            _relationalAnnotationProvider = relationalAnnotationProvider;
            _sqlQueryGeneratorFactory = sqlQueryGeneratorFactory;
            _querySource = querySource;
            _navigationPath = navigationPath;
            _queryCompilationContext = queryCompilationContext;
            _queryIndexes = queryIndexes;
            _querySourceRequiresTracking = querySourceRequiresTracking;
        }
开发者ID:491134648,项目名称:EntityFramework,代码行数:33,代码来源:IncludeExpressionVisitor.cs


示例5: Create

 public virtual ExpressionVisitor Create(
     EntityQueryModelVisitor queryModelVisitor, IQuerySource querySource)
     => new RelationalProjectionExpressionVisitor(
         _sqlTranslatingExpressionVisitorFactory,
         _entityMaterializerSource,
         (RelationalQueryModelVisitor)Check.NotNull(queryModelVisitor, nameof(queryModelVisitor)),
         Check.NotNull(querySource, nameof(querySource)));
开发者ID:adwardliu,项目名称:EntityFramework,代码行数:7,代码来源:RelationalProjectionExpressionVisitorFactory.cs


示例6: Add

		public void Add(IQuerySource querySource)
		{
			if (_map.ContainsKey(querySource))
				return;

			_map.Add(querySource, CreateUniqueName(querySource.ItemName));
		}
开发者ID:khaliyo,项目名称:Spring.net-NHibernate.net-Asp.net-MVC-DWZ-,代码行数:7,代码来源:QuerySourceNamer.cs


示例7: AddSelectPart

		public bool AddSelectPart(IQuerySource qs, string sql, string name, Type type, Func<ResultObjectMapping, BufferedTextReader, IDataReader, object> instancer)
		{
			if (Selects.Any(kv => kv.Name == name))
				return false;
			Selects.Add(new SelectSource { QuerySource = qs, Sql = sql, Name = name, ItemType = type, Instancer = instancer });
			CurrentSelectIndex++;
			return true;
		}
开发者ID:dstimac,项目名称:revenj,代码行数:8,代码来源:QueryParts.cs


示例8: RelationalEntityQueryableExpressionTreeVisitor

        public RelationalEntityQueryableExpressionTreeVisitor(
            [NotNull] RelationalQueryModelVisitor queryModelVisitor,
            [NotNull] IQuerySource querySource)
            : base(Check.NotNull(queryModelVisitor, nameof(queryModelVisitor)))
        {
            Check.NotNull(querySource, nameof(querySource));

            _querySource = querySource;
        }
开发者ID:thegido,项目名称:EntityFramework,代码行数:9,代码来源:RelationalEntityQueryableExpressionTreeVisitor.cs


示例9: ContactListViewModel

        public ContactListViewModel(IQuerySource querySource)
        {
            _querySource = querySource;

            _treeLayout = new TreeContactLayout();
            _plotLayout = new PlotContactLayout(querySource);

            AttemptToSetLayout();
        }
开发者ID:Irdis,项目名称:VSTalk,代码行数:9,代码来源:ContactListViewModel.cs


示例10: ReplaceMapping

    public void ReplaceMapping (IQuerySource querySource, Expression expression)
    {
      ArgumentUtility.CheckNotNull ("querySource", querySource);
      ArgumentUtility.CheckNotNull ("expression", expression);

      if (!ContainsMapping (querySource))
        throw new InvalidOperationException ("Query source has not been associated with an expression, cannot replace its mapping.");

      _lookup[querySource] = expression;
    }
开发者ID:GOArango,项目名称:arangoclient.net,代码行数:10,代码来源:QuerySourceMapping.cs


示例11: Create

 public virtual QueryFlattener Create(
     IQuerySource querySource,
     RelationalQueryCompilationContext relationalQueryCompilationContext,
     MethodInfo operatorToFlatten,
     int readerOffset)
     => new QueryFlattener(
         querySource,
         relationalQueryCompilationContext,
         operatorToFlatten,
         readerOffset);
开发者ID:ChuYuzhi,项目名称:EntityFramework,代码行数:10,代码来源:QueryFlattenerFactory.cs


示例12: Create

 /// <summary>
 ///     Creates a new ExpressionVisitor.
 /// </summary>
 /// <param name="queryModelVisitor"> The query model visitor. </param>
 /// <param name="querySource"> The query source. </param>
 /// <returns>
 ///     An ExpressionVisitor.
 /// </returns>
 public virtual ExpressionVisitor Create(
     EntityQueryModelVisitor queryModelVisitor, IQuerySource querySource)
     => new RelationalEntityQueryableExpressionVisitor(
         _model,
         _selectExpressionFactory,
         _materializerFactory,
         _shaperCommandContextFactory,
         _relationalAnnotationProvider,
         (RelationalQueryModelVisitor)Check.NotNull(queryModelVisitor, nameof(queryModelVisitor)),
         querySource);
开发者ID:RickyLin,项目名称:EntityFramework,代码行数:18,代码来源:RelationalEntityQueryableExpressionVisitorFactory.cs


示例13: GetExpression

    public Expression GetExpression (IQuerySource querySource)
    {
      ArgumentUtility.CheckNotNull ("querySource", querySource);

      Expression expression;
      if (!_lookup.TryGetValue (querySource, out expression))
        throw new KeyNotFoundException (string.Format ("Query source ({0}) has not been associated with an expression.", querySource));

      return expression;
    }
开发者ID:natemcmaster,项目名称:Relinq,代码行数:10,代码来源:QuerySourceMapping.cs


示例14: RelationalProjectionExpressionTreeVisitor

        public RelationalProjectionExpressionTreeVisitor(
            [NotNull] RelationalQueryModelVisitor queryModelVisitor,
            [NotNull] IQuerySource querySource)
            : base(Check.NotNull(queryModelVisitor, nameof(queryModelVisitor)))
        {
            _querySource = querySource;

            _sqlTranslatingExpressionTreeVisitor
                = new SqlTranslatingExpressionTreeVisitor(queryModelVisitor);
        }
开发者ID:thegido,项目名称:EntityFramework,代码行数:10,代码来源:RelationalProjectionExpressionTreeVisitor.cs


示例15: RelationalProjectionExpressionVisitor

        public RelationalProjectionExpressionVisitor(
            [NotNull] RelationalQueryModelVisitor queryModelVisitor,
            [NotNull] IQuerySource querySource)
            : base(Check.NotNull(queryModelVisitor, nameof(queryModelVisitor)))
        {
            Check.NotNull(querySource, nameof(querySource));

            _queryModelVisitor = queryModelVisitor;
            _querySource = querySource;
        }
开发者ID:rbenhassine2,项目名称:EntityFramework,代码行数:10,代码来源:RelationalProjectionExpressionVisitor.cs


示例16: Create

 public override ExpressionVisitor Create(EntityQueryModelVisitor queryModelVisitor, IQuerySource querySource)
 {
     return new MaterializingRelationalEntityQueryableExpressionVisitor(
         _model,
         _selectExpressionFactory,
         _materializerFactory,
         _shaperCommandContextFactory,
         _relationalAnnotationProvider,
         (RelationalQueryModelVisitor)queryModelVisitor,
         querySource); ;
 }
开发者ID:nefremov,项目名称:LazyEntityFramework,代码行数:11,代码来源:MaterializingRelationalEntityQueryableExpressionVisitorFactory.cs


示例17: GetName

		public string GetName(IQuerySource querySource)
		{
			if (!_map.ContainsKey(querySource))
				throw new HibernateException(
					String.Format("Query Source could not be identified: ItemName = {0}, ItemType = {1}, Expression = {2}",
					              querySource.ItemName,
					              querySource.ItemType,
					              querySource));

			return _map[querySource];
		}
开发者ID:khaliyo,项目名称:Spring.net-NHibernate.net-Asp.net-MVC-DWZ-,代码行数:11,代码来源:QuerySourceNamer.cs


示例18: AddQuerySource

        private void AddQuerySource(IQuerySource querySource)
        {
            if (!_querySources.ContainsKey(querySource))
            {
                _querySources.Add(querySource, 0);
            }

            if (_model.FindEntityType(querySource.ItemType) != null)
            {
                _querySources[querySource]++;
            }
        }
开发者ID:RickyLin,项目名称:EntityFramework,代码行数:12,代码来源:RequiresMaterializationExpressionVisitor.cs


示例19: QuerySourceReferenceExpression

    public QuerySourceReferenceExpression (IQuerySource querySource)
#if NET_3_5
        : base(ExpressionType, querySource.ItemType)
#endif
    {
      ArgumentUtility.CheckNotNull ("querySource", querySource);
        
#if !NET_3_5
      _type = querySource.ItemType;
#endif
      ReferencedQuerySource = querySource;
    }
开发者ID:nicocrm,项目名称:DotNetSDataClient,代码行数:12,代码来源:QuerySourceReferenceExpression.cs


示例20: GetExpression

 public Expression GetExpression (IQuerySource querySource)
 {
   ArgumentUtility.CheckNotNull ("querySource", querySource);
   try
   {
     return _lookup[querySource];
   }
   catch (KeyNotFoundException)
   {
     throw new KeyNotFoundException ("Query source has not been associated with an expression.");
   }
 }
开发者ID:GOArango,项目名称:arangoclient.net,代码行数:12,代码来源:QuerySourceMapping.cs



注:本文中的IQuerySource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IQueryable类代码示例发布时间:2022-05-24
下一篇:
C# IQueryPlanNode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap