public CassandraTableImpl WithPartitionKey(Models.CassandraPartitionKey partitionKey)
        {
            if (this.createUpdateParameters.Resource.Schema == null)
            {
                this.createUpdateParameters.Resource.Schema = new CassandraSchema();
            }
            if (this.createUpdateParameters.Resource.Schema.PartitionKeys == null)
            {
                this.createUpdateParameters.Resource.Schema.PartitionKeys = new List <CassandraPartitionKey>();
            }

            this.createUpdateParameters.Resource.Schema.PartitionKeys.Add(partitionKey);
            return(this);
        }
Ejemplo n.º 2
0
 CassandraTable.Definition.IWithAttach <UpdateParentT> CassandraTable.Definition.IWithPartitionKey <UpdateParentT> .WithPartitionKey(Models.CassandraPartitionKey partitionKey)
 {
     return(this.WithPartitionKey(partitionKey));
 }
Ejemplo n.º 3
0
 CassandraTable.Update.IUpdate CassandraTable.Update.IWithPartitionKey.WithPartitionKey(Models.CassandraPartitionKey partitionKey)
 {
     return(this.WithPartitionKey(partitionKey));
 }