本文整理汇总了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);
}
示例2: JoinBlock
public JoinBlock(QueryBlock query, JoinType joinType, TableRef innerRef, StatementBlock on)
{
this.query = query;
JoinType = joinType;
InnerRef = innerRef;
On = on;
}
示例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);
}
示例4: JoinClause
public JoinClause(ObjectReference table, JoinType joinType, SimpleExpression joinExpression)
{
if (table == null) throw new ArgumentNullException("table");
_table = table;
_joinType = joinType;
_joinExpression = joinExpression;
}
示例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]);
}
}
示例6: PrettyPolyMeshLayer
public PrettyPolyMeshLayer()
: base()
{
minTileSize = 100;
outerJoinType = JoinType.Rounded;
innerJoinType = JoinType.Rounded;
}
示例7: JoinedTable
public JoinedTable(JoinType Type, IQueryTable OuterTable, string InnerKey, string OuterKey)
{
this.OuterTable = OuterTable;
this.InnerKey = InnerKey;
this.OuterKey = OuterKey;
this.Type = Type;
}
示例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");
}
*/
}
示例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;
}
示例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);
}
示例11: JoinedTableExpression
public JoinedTableExpression(IAliasedExpression left, IAliasedExpression right, JoinType joinType, TableAlias alias)
: base(alias)
{
LeftTable = left;
RightTable = right;
JoinType = joinType;
}
示例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);
}
示例13: Join
public Join(string rightTable, string rightTableAlias, string leftField, string rightField, JoinType type)
{
LeftField = leftField;
RightTable = rightTable;
RightTableAlias = rightTableAlias;
RightField = rightField;
Type = type;
}
示例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;
}
示例15: QueryJoin
public QueryJoin(string modelField, IModel joinedModel, string joinedField, JoinType joinType, QExprGroup joinConditions)
{
ModelField = modelField;
JoinedModel = joinedModel;
JoinedField = joinedField;
Type = joinType;
JoinConditions = joinConditions;
}