Exemple #1
0
        public void Create()
        {
            var cqlQueries = CqlGenerator.GetCreate(PocoData, Name, KeyspaceName, false);

            foreach (var cql in cqlQueries)
            {
                _session.Execute(cql);
            }
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
        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);
            }
        }