本文整理汇总了C#中Linq类的典型用法代码示例。如果您正苦于以下问题:C# Linq类的具体用法?C# Linq怎么用?C# Linq使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Linq类属于命名空间,在下文中一共展示了Linq类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetOrderByColumn
public override Linq.Translation.SqlGen.SqlStatement GetOrderByColumn(Linq.Translation.SqlGen.SqlStatement expression, bool descending)
{
string result = string.Format("{0} COLLATE NOCASE", expression);
if(descending)
result += " DESC";
return result;
}
示例2: Visit
public virtual object Visit (Linq.QueryExpression queryExpression)
{
return null;
}
示例3: VisitLinqExpression
virtual public void VisitLinqExpression(Linq.LinqExpression x)
{
VisitQueryBody(x.Body);
}
示例4: VisitWhereClause
virtual public void VisitWhereClause(Linq.WhereClause x)
{
VisitElement(x.Expression);
}
示例5: VisitOrderByClause
virtual public void VisitOrderByClause(Linq.OrderByClause x)
{
foreach (Linq.OrderingClause item in x.OrderingClauses)
VisitElement(item);
}
示例6: VisitOrderingClause
virtual public void VisitOrderingClause(Linq.OrderingClause x)
{
VisitElement(x.Expression);
}
示例7: VisitIntoClause
virtual public void VisitIntoClause(Linq.IntoClause x)
{
VisitElement(x.KeyVar);
VisitElement(x.ValueVar);
VisitQueryBody(x.NextQuery);
}
示例8: VisitGroupByClause
virtual public void VisitGroupByClause(Linq.GroupByClause x)
{
VisitElement(x.GroupExpr);
VisitElement(x.ByExpr);
}
示例9: VisitSelectClause
virtual public void VisitSelectClause(Linq.SelectClause x)
{
VisitElement(x.Expression);
}
示例10: VisitFromClause
virtual public void VisitFromClause(Linq.FromClause x)
{
foreach (Linq.Generator g in x.Generators)
VisitElement(g);
}
示例11: VisitGenerator
virtual public void VisitGenerator(Linq.Generator x)
{
VisitElement(x.Expression);
}
示例12: VisitLinqTuple
virtual internal void VisitLinqTuple(Linq.LinqTuple x)
{
VisitElement(x.LastItem);
foreach (Linq.OrderingClause item in x.OrderingItems)
VisitElement(item);
}
示例13: VisitLinqTupleItemAccess
virtual internal void VisitLinqTupleItemAccess(Linq.LinqTupleItemAccess x)
{
// nothing
}
示例14: VisitLinqOpChain
virtual internal void VisitLinqOpChain(Linq.LinqOpChain x)
{
VisitElement(x.Expression);
}
示例15: VisitQueryBody
virtual public void VisitQueryBody(Linq.QueryBody x)
{
foreach (Linq.FromWhereClause item in x.FromWhere)
VisitElement(item);
}