title: "Greater than" where-condition on timeuuid using Datastax C# Cassandra Driver
body: <p>How do I make "greater than" or "less than" where-conditions in CQL queries on the timeuuid data type using the Datastax C# driver?</p>
  
  <p>I have a table in Cassandra for storing cookie history sorted by time stamp as timeuuid:</p>
  
  <pre><code>CREATE TABLE cookie_history (
      cookie_id text,
      create_date timeuuid,
      item_id text,
      PRIMARY KEY ((cookie_id), create_date)
  );
  </code></pre>
  
  <p>The table is mapped using a C# class for querying using the Datastax C# Cassandra driver:</p>
  
  <pre><code>[Table("cookie_history")]
  public class CookieHistoryDataEntry
  {
      [PartitionKey(1)]
      [Column("cookie_id")]
      public string CookieID;
  
      [ClusteringKey(1)]
      [Column("create_date")]
      public Guid CreateDate;
  
      [Column("item_id")]
      public string ItemID;
  }
  </code></pre>
  
  <p>For a given cookie I want all items after a given time stamp.</p>
  
  <pre><code>        var myTimeUuid = new Guid("5812e74d-ba49-11e3-8d27-27303e6a4831");
          var table = session.GetTable&lt;CookieHistoryDataEntry&gt;();
          var query = table.Where(x =&gt; x.CookieID == myCookieId
                                    &amp;&amp; x.CreateDate &gt; myTimeUuid);
  </code></pre>
  
  <p>But this (x.CreateDate > myTimeUuid) gives me a compile time error:</p>
  
  <pre><code>Operator '&gt;' cannot be applied to operands of type 'System.Guid' and 'System.Guid'
  </code></pre>