src/Cassandra.IntegrationTests/Core/PagingTests.cs
/// <summary>
/// Creates a table with a composite index and inserts a number of records synchronously.
/// </summary>
/// <returns>The name of the table</returns>
Creates a table with a composite index and inserts a number of records synchronously.
Creates a table with a composite index and inserts a number of records synchronously .
private Tuple<string, string> CreateTableWithCompositeIndexAndInsert(ISession session, int rowsInTable)
        {
            var tableName = TestUtils.GetUniqueTableName();
            var staticClusterKeyStr = "staticClusterKeyStr";
            QueryTools.ExecuteSyncNonQuery(session, $@"
                CREATE TABLE {tableName} (
                id text,
                label text,
                PRIMARY KEY (label, id));");
            for (var i = 0; i < rowsInTable; i++)
            {
                session.Execute(string.Format("INSERT INTO {2} (label, id) VALUES('{0}','{1}')", staticClusterKeyStr, Guid.NewGuid().ToString(), tableName));
            }
            var infoTuple = new Tuple<string, string>(tableName, staticClusterKeyStr);
            return infoTuple;
        }
private Tuple < string , string > CreateTableWithCompositeIndexAndInsert ( ISession session , int rowsInTable ) { var tableName = TestUtils . GetUniqueTableName ( ) ; var staticClusterKeyStr = " " ; QueryTools . ExecuteSyncNonQuery ( session , $@" 
                CREATE TABLE  { tableName }  (
                id text,
                label text,
                PRIMARY KEY (label, id)); " ) ; for ( var i = 0 ; i < rowsInTable ; i ++ ) { session . Execute ( string . Format ( " " , staticClusterKeyStr , Guid . NewGuid ( ) . ToString ( ) , tableName ) ) ; } var infoTuple = new Tuple < string , string > ( tableName , staticClusterKeyStr ) ; return infoTuple ; }
Creates a table with a composite index and inserts a number of records synchronously.
Creates a table with a composite index and inserts a number of records synchronously .
The name of the table
The name of the table
session
ISession
rowsInTable
int