title: Ingesting data to kusto database using c#
body: <p>I am using kusto .net SDK to write to kusto database using c#.. I am able to create the table as I please, but I wish to be able to write some rows to the database and populate the columns &quot;a&quot; and &quot;b&quot;.. couldn't find an easy way to do this online..</p>
  <pre><code>    static void Main(string[] args)
      {
  
          var KustoClusterConnectionString = $&quot;xxxxxxxxxxxxxx&quot;;            
          var KustoDbName = &quot;userGroup&quot;;            
          var AppId = &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;;
          var TenantId = &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;;
          var clientSecret = &quot;xxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;;
          
          var kcsb = new KustoConnectionStringBuilder(KustoClusterConnectionString)
          {
              InitialCatalog = KustoDbName,
              FederatedSecurity = true,
              ApplicationClientId = AppId,
              ApplicationKey = clientSecret,
              Authority = TenantId
          };                     
  
          var tableName = &quot;userGroup&quot;;  
          using (var kustoClient = KustoClientFactory.CreateCslAdminProvider(kcsb))
          {
              var command =
                  CslCommandGenerator.GenerateTableCreateCommand(
                      tableName,
                      new[]
                      {
              //Tuple.Create(&quot;TimeStamp&quot;, &quot;System.DateTime&quot;),
              Tuple.Create(&quot;a&quot;, &quot;System.String&quot;),
              Tuple.Create(&quot;b&quot;, &quot;System.String&quot;),
  
                      });
  
              kustoClient.ExecuteControlCommand(KustoDbName, command);
          }
        }
  </code></pre>