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

C# JoinType类代码示例

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

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



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

示例1: Table

 public Table(Type memberType, JoinType joinType)
 {
     EntityType = memberType;
     Name = memberType.GetTableName();
     JoinType = joinType;
     Columns = MapRepository.Instance.GetColumns(memberType);
 }
开发者ID:BO45,项目名称:NzbDrone,代码行数:7,代码来源:Table.cs


示例2: JoinBlock

 public JoinBlock(QueryBlock query, JoinType joinType, TableRef innerRef, StatementBlock on)
 {
     this.query = query;
     JoinType = joinType;
     InnerRef = innerRef;
     On = on;
 }
开发者ID:DzmitrySo,项目名称:sqLinq,代码行数:7,代码来源:JoinBlock.cs


示例3: JoinAt

 public void JoinAt(int betweenIndex, JoinType joinType, SqlExpression onExpression)
 {
     var planLeft = tablePlans[betweenIndex];
     var planRight = tablePlans[betweenIndex + 1];
     planLeft.RightJoin(planRight, joinType, onExpression);
     planRight.LeftJoin(planLeft, joinType, onExpression);
 }
开发者ID:prepare,项目名称:deveeldb,代码行数:7,代码来源:QueryTablePlanner.cs


示例4: JoinClause

 public JoinClause(ObjectReference table, JoinType joinType, SimpleExpression joinExpression)
 {
     if (table == null) throw new ArgumentNullException("table");
     _table = table;
     _joinType = joinType;
     _joinExpression = joinExpression;
 }
开发者ID:JorgeGamba,项目名称:Simple.Data,代码行数:7,代码来源:JoinClause.cs


示例5: AddJoin

		public override void AddJoin(string tableName, string alias, string[] fkColumns, string[] pkColumns, JoinType joinType)
		{
			switch (joinType)
			{
				case JoinType.InnerJoin:
					AddCrossJoin(tableName, alias);
					break;
				case JoinType.LeftOuterJoin:
					afterFrom.Add(StringHelper.CommaSpace).Add("outer ").Add(tableName).Add(" ").Add(alias);
					break;
				case JoinType.RightOuterJoin:
					int i = GetPrevTableInsertPoint(afterFrom.ToSqlString());
					afterFrom.Insert(i, "outer ");
					break;
				case JoinType.FullJoin:
					throw new NotSupportedException("join type not supported by Informix");
				default:
					throw new AssertionFailure("undefined join type");
			}

			for (int j = 0; j < fkColumns.Length; j++)
			{
				HasThetaJoins = true;
				afterWhere.Add(" and " + fkColumns[j]);
				afterWhere.Add("=" + alias + StringHelper.Dot + pkColumns[j]);
			}
		}
开发者ID:marchlud,项目名称:nhibernate-core,代码行数:27,代码来源:InformixJoinFragment.cs


示例6: PrettyPolyMeshLayer

 public PrettyPolyMeshLayer()
     : base()
 {
     minTileSize = 100;
     outerJoinType = JoinType.Rounded;
     innerJoinType = JoinType.Rounded;
 }
开发者ID:DylanGuidry95,项目名称:PrettyPoly,代码行数:7,代码来源:PrettyPolyMeshLayer.cs


示例7: JoinedTable

 public JoinedTable(JoinType Type, IQueryTable OuterTable, string InnerKey, string OuterKey)
 {
     this.OuterTable = OuterTable;
     this.InnerKey = InnerKey;
     this.OuterKey = OuterKey;
     this.Type = Type;
 }
开发者ID:RepetitX,项目名称:SQLQueryGenerator,代码行数:7,代码来源:JoinedTable.cs


示例8: Join

        public Join(string fromTableName, string fromColumnName, string toTableName, string toColumnName, JoinType joinType)
        {
            /*
            //lookem up
            ITable tblFrom = (DatabaseTable)DataService.FindTable(fromTableName);
            if (tblFrom == null)
                tblFrom = DataService.FindTableByClassName(fromTableName);

            DatabaseTable tblTo = (DatabaseTable)DataService.FindTable(toTableName);
            if (tblTo == null)
                tblTo = DataService.FindTableByClassName(toTableName);
            
            DatabaseTableColumn fromCol = null;
            DatabaseTableColumn toCol = null;

            if (tblFrom != null) {
                fromCol = tblFrom.GetColumn(fromColumnName);

            }

            if (tblTo != null) {
                toCol = tblTo.GetColumn(toColumnName);
            }

            if (fromCol != null && toCol != null) {
                FromColumn = fromCol;
                ToColumn = toCol;
                Type = joinType;

            } else {
                throw new InvalidOperationException("Can't find the table/columns you're looking for");
            }
            */
        }
开发者ID:jcoenen,项目名称:SubSonic-3.0,代码行数:34,代码来源:Join.cs


示例9: CreateAliasEvent

 /// <summary>
 /// Construct a CreateAliasEvent
 /// Construct a CreateAliasEvent
 /// </summary>
 /// <param name="methodSig">The signature of the createAlias method we're going to invoke when the event fires</param>
 /// <param name="associationPath">the association path of the alias we're creating</param>
 /// <param name="alias"> the name of the alias we're creating</param>
 /// <param name="joinType">the join type of the alias we're creating. Can be null</param>
 private CreateAliasEvent(MethodSig methodSig, string associationPath, string alias, JoinType joinType)
 {
     this.methodSig = methodSig;
     this.associationPath = associationPath;
     this.alias = alias;
     this.joinType = joinType;
 }
开发者ID:hazzik,项目名称:nh-contrib-everything,代码行数:15,代码来源:CreateAliasEvent.cs


示例10: AddJoin

        /// <summary>
        /// Jet engine does not support full joins.
        /// </summary>
        /// <param name="tableName"></param>
        /// <param name="alias"></param>
        /// <param name="fkColumns"></param>
        /// <param name="pkColumns"></param>
        /// <param name="joinType"></param>
        public override void AddJoin(string tableName, string alias, string[] fkColumns, string[] pkColumns, JoinType joinType)
        {
            if (joinType == JoinType.FullJoin)
                throw new NotSupportedException("The FULL JOIN is not supported by Jet database engine.");

            base.AddJoin(tableName, alias, fkColumns, pkColumns, joinType);
        }
开发者ID:pruiz,项目名称:nhibernate-contrib-old,代码行数:15,代码来源:JetJoinFragment.cs


示例11: JoinedTableExpression

 public JoinedTableExpression(IAliasedExpression left, IAliasedExpression right, JoinType joinType, TableAlias alias)
     : base(alias)
 {
     LeftTable = left;
     RightTable = right;
     JoinType = joinType;
 }
开发者ID:npenin,项目名称:uss,代码行数:7,代码来源:JoinedTableExpression.cs


示例12: AddJoin

		public override void AddJoin(string tableName, string alias, string[] fkColumns, string[] pkColumns, JoinType joinType,
		                             SqlString on)
		{
			string joinString;
			switch (joinType)
			{
				case JoinType.InnerJoin:
					joinString = " inner join ";
					break;
				case JoinType.LeftOuterJoin:
					joinString = " left outer join ";
					break;
				case JoinType.RightOuterJoin:
					joinString = " right outer join ";
					break;
				case JoinType.FullJoin:
					joinString = " full outer join ";
					break;
				default:
					throw new AssertionFailure("undefined join type");
			}

			_fromFragment.Add(joinString + tableName + ' ' + alias + " on ");

			for (int j = 0; j < fkColumns.Length; j++)
			{
				_fromFragment.Add(fkColumns[j] + "=" + alias + StringHelper.Dot + pkColumns[j]);
				if (j < fkColumns.Length - 1)
				{
					_fromFragment.Add(" and ");
				}
			}

			AddCondition(_fromFragment, on);
		}
开发者ID:jeynnecool,项目名称:nhibernate-core,代码行数:35,代码来源:ANSIJoinFragment.cs


示例13: Join

 public Join(string rightTable, string rightTableAlias, string leftField, string rightField, JoinType type)
 {
     LeftField = leftField;
     RightTable = rightTable;
     RightTableAlias = rightTableAlias;
     RightField = rightField;
     Type = type;
 }
开发者ID:kkalinowski,项目名称:lib12,代码行数:8,代码来源:Join.cs


示例14: JoinExpression

 public JoinExpression(JoinType joinType, Expression left, Expression right, Expression condition)
     : base(DbExpressionType.Join, typeof(void))
 {
     this.joinType = joinType;
     this.left = left;
     this.right = right;
     this.condition = condition;
 }
开发者ID:PaybackMan,项目名称:Cinder,代码行数:8,代码来源:JoinExpression.cs


示例15: QueryJoin

 public QueryJoin(string modelField, IModel joinedModel, string joinedField, JoinType joinType, QExprGroup joinConditions)
 {
     ModelField = modelField;
     JoinedModel = joinedModel;
     JoinedField = joinedField;
     Type = joinType;
     JoinConditions = joinConditions;
 }
开发者ID:rahulchrty,项目名称:badr-project,代码行数:8,代码来源:Queryset.cs


示例16: Join

 /// <summary>
 /// Initializes a new instance of the <see cref="Join"/> class.
 /// </summary>
 /// <param name="from">From.</param>
 /// <param name="to">To.</param>
 /// <param name="joinType">Type of the join.</param>
 public Join(TableSchema.TableColumn from, TableSchema.TableColumn to, JoinType joinType,params string[] joinExpressions)
 {
     FromColumn = from;
     ToColumn = to;
     Type = joinType;
     if (joinExpressions != null && joinExpressions.Length > 0)
         JoinExpressions.AddRange(joinExpressions);
 }
开发者ID:eleooo,项目名称:App,代码行数:14,代码来源:Join.cs


示例17: WhereClause

 public WhereClause(JoinType joinType, params IWhere[] criteria)
 {
     if (criteria == null || criteria.Length < 2)
     {
         throw new Exception("A where clause can only be created from two or more components.");
     }
     JoinType = joinType;
     Add(criteria);
 }
开发者ID:jamietre,项目名称:IQMap,代码行数:9,代码来源:WhereClause.cs


示例18: JoinClause

 public JoinClause(JoinType join, string toTableName, string toColumnName, Comparison @operator, string fromTableName, string fromColumnName)
 {
     this.JoinType = join;
     this.FromTable = fromTableName;
     this.FromColumn = fromColumnName;
     this.ComparisonOperator = @operator;
     this.ToTable = toTableName;
     this.ToColumn = toColumnName;
 }
开发者ID:JohannesHei,项目名称:ControlCenter,代码行数:9,代码来源:JoinClause.cs


示例19: GetJoinClauses

 public IEnumerable<string> GetJoinClauses(ObjectName mainTableName, IEnumerable<string> tableList, JoinType joinType = JoinType.Inner)
 {
     var tablePairs = tableList.Select(t => new ObjectName(mainTableName.Schema, t)).ToTuplePairs().ToList();
     foreach (var tablePair in tablePairs)
     {
         AddJoin(tablePair.Item1, tablePair.Item2);
     }
     return tablePairs.Select(tp => _done[tp.Item2]);
 }
开发者ID:kppullin,项目名称:Simple.Data,代码行数:9,代码来源:Joiner.cs


示例20: Join

 public Query Join(JoinType joinType,
     TableSchema leftTableSchema, string leftColumn, string leftTableAlias,
     object rightTableSql, string rightColumn, string rightTableAlias)
 {
     if (_ListJoin == null) _ListJoin = new JoinList();
     Join join = new Join(joinType, leftTableSchema, leftColumn, leftTableAlias, rightTableSql, rightColumn, rightTableAlias);
     _ListJoin.Add(join);
     return this;
 }
开发者ID:ycaihua,项目名称:dg.Sql,代码行数:9,代码来源:Joins.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Joint类代码示例发布时间:2022-05-24
下一篇:
C# JoinExpression类代码示例发布时间: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