src/Cassandra.IntegrationTests/Core/PagingTests.cs
/// <summary>
/// Creates a table and inserts a number of records synchronously.
/// </summary>
/// <returns>The name of the table</returns>
Creates a table and inserts a number of records synchronously.
Creates a table and inserts a number of records synchronously .
private string CreateSimpleTableAndInsert(int rowsInTable, string tableName = null)
        {
            if (tableName == null)
            {
                tableName = TestUtils.GetUniqueTableName();
            }
            QueryTools.ExecuteSyncNonQuery(Session, $@"
                CREATE TABLE {tableName}(
                id uuid PRIMARY KEY,
                label text);");
            for (var i = 0; i < rowsInTable; i++)
            {
                Session.Execute(string.Format("INSERT INTO {2} (id, label) VALUES({0},'{1}')", Guid.NewGuid(), "LABEL" + i, tableName));
            }
            return tableName;
        }
private string CreateSimpleTableAndInsert ( int rowsInTable , string tableName = null ) { if ( tableName == null ) { tableName = TestUtils . GetUniqueTableName ( ) ; } QueryTools . ExecuteSyncNonQuery ( Session , $@" 
                CREATE TABLE  { tableName } (
                id uuid PRIMARY KEY,
                label text); " ) ; for ( var i = 0 ; i < rowsInTable ; i ++ ) { Session . Execute ( string . Format ( " " , Guid . NewGuid ( ) , " " + i , tableName ) ) ; } return tableName ; }
Creates a table and inserts a number of records synchronously.
Creates a table and inserts a number of records synchronously .
The name of the table
The name of the table
rowsInTable
int
tableName
string