本文整理汇总了C#中JoinType.ThrowIfEnumOutOfRange方法的典型用法代码示例。如果您正苦于以下问题:C# JoinType.ThrowIfEnumOutOfRange方法的具体用法?C# JoinType.ThrowIfEnumOutOfRange怎么用?C# JoinType.ThrowIfEnumOutOfRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoinType
的用法示例。
在下文中一共展示了JoinType.ThrowIfEnumOutOfRange方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: JoinView
protected JoinView(View left, JoinType joinType, View right, Expression joinKey)
{
left.ThrowIfNullArgument(nameof(left));
right.ThrowIfNullArgument(nameof(right));
joinType.ThrowIfEnumOutOfRange();
joinKey.ThrowIfNullArgument(nameof(joinKey));
_left = left;
_right = right;
_joinType = joinType;
_joinKey = joinKey;
this._viewType = ViewType.Join;
}
示例2: GetJoinKeyword
public string GetJoinKeyword(JoinType joinType)
{
joinType.ThrowIfEnumOutOfRange();
switch (joinType)
{
case JoinType.Inner:
return " JOIN ";
case JoinType.Left:
return " LEFT JOIN ";
case JoinType.Right:
return " RIGHT JOIN ";
case JoinType.Outer:
return " OUTER JOIN ";
default:
return string.Empty;
}
}