Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 647 Bytes
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.