public void Create() { var cqlQueries = CqlGenerator.GetCreate(PocoData, Name, KeyspaceName, false); foreach (var cql in cqlQueries) { _session.Execute(cql); } }
public void Create() { var serializer = _session.Cluster.Metadata.ControlConnection.Serializer; var cqlQueries = CqlGenerator.GetCreate(serializer, PocoData, Name, KeyspaceName, false); foreach (var cql in cqlQueries) { _session.Execute(cql); } }
public async Task CreateAsync() { var serializer = _session.Cluster.Metadata.ControlConnection.Serializer.GetCurrentSerializer(); var cqlQueries = CqlGenerator.GetCreate(serializer, PocoData, Name, KeyspaceName, false); foreach (var cql in cqlQueries) { await _session.ExecuteAsync(new SimpleStatement(cql)).ConfigureAwait(false); } }