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

56 lines (42 sloc) 1.012 kb
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Linq;
namespace FluentCassandra.Operations
{
public class CassandraSlicePredicateQuery<TResult> : IEnumerable<TResult>
{
internal CassandraSlicePredicateQuery(BaseCassandraColumnFamily family, Expression expression)
{
Family = family;
Expression = expression;
if (Expression == null)
Expression = Expression.Constant(this);
}
#region IEnumerable<TResult> Members
public IEnumerator<TResult> GetEnumerator()
{
return Family.ExecuteCassandraSlicePredicateQuery(this).GetEnumerator();
}
#endregion
#region IEnumerable Members
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
#endregion
#region CassandraSlicePredicateQuery<TResult> Members
public BaseCassandraColumnFamily Family
{
get;
private set;
}
public Expression Expression
{
get;
private set;
}
#endregion
}
}
Jump to Line
Something went wrong with that request. Please try again.