Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.647 kb
using System;
using System.Linq;
using FluentCassandra.Types;
using System.Linq.Expressions;
using System.Reflection;
namespace FluentCassandra.Linq
{
public static class CqlQueryExtensions
{
public static CqlQuery Select(this IQueryable<ICqlRow> source, params CassandraObject[] columns)
{
if (source == null)
throw new ArgumentNullException("source");
if (columns == null)
throw new ArgumentNullException("columns");
return (CqlQuery)source.Provider.CreateQuery<ICqlRow>(Expression.Call(null, (MethodInfo)MethodBase.GetCurrentMethod(), new Expression[] { source.Expression, Expression.Constant(columns) }));
}
}
}
Jump to Line
Something went wrong with that request. Please try again.