I'm trying to create column family with this code
public void CreateAColumnFamily() { using (var db = new CassandraContext(keyspace:"Earth", server: Server)) { CassandraColumnFamily cf = db.GetColumnFamily("People"); if (cf == null) { db.ExecuteNonQuery(@"CREATE COLUMNFAMILY People ( KEY ascii PRIMARY KEY, FirstName text, LastName text, Age int, Title text );"); } cf = db.GetColumnFamily("People"); } }
But nothing to happening. If i just to execute command create column family People in cassandra-cli - column family is creating. What i do wrong?