当前位置: 首页>>代码示例>>C#>>正文


C# JoinType类代码示例

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


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


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