Linq .Count() support #56

Open
ghost opened this Issue Sep 3, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Sep 3, 2012

It seems that Linq.Count is not supported in FluentCassandra

var cnt = (from u in _db.GetColumnFamily("test") select u).Count();

throws:
CassandraColumnFamily+QueryProvider.cs (137) TElement' must inherit from IFluentBaseColumnFamily

nberardi was assigned Sep 3, 2012

Contributor

nberardi commented Sep 3, 2012

I have been trying to find an elegant way to support this, because this is actually a scalar return value. It is something that I would like to include support for, but it really doesn't fit into the type that is currently returned by IFluentBaseColumn, so we may have to change a few things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment