Exemple #1
0
        public async Task <IEnumerable <SomeSimpleTable> > ScanSimpleTablePartialKey()
        {
            var start = new SomeSimpleTable {
                IntKey = 1
            };

            return(await _bigtable.ScanAsync(start, rowLimit : 10));
        }
Exemple #2
0
        public async Task <IEnumerable <SomeSimpleTable> > ScanSimpleTable()
        {
            var start = new SomeSimpleTable {
                IntKey = 1
            };
            var end = new SomeSimpleTable {
                IntKey = 2
            };

            return(await _bigtable.ScanAsync(start, end, 10));
        }
Exemple #3
0
        public async Task UpdateValueConditionally()
        {
            // Describe prototype
            var table = new SomeSimpleTable {
                IntKey = 1, StringKey = "a"
            };

            // Set value to pig if not specified
            await _bigtable.UpdateWhenFalseAsync(table, row => row.StringValue.IsSpecified, x => "Pig");

            // Better to be the chicken than the pig
            await _bigtable.UpdateWhenTrueAsync(table, row => row.StringValue == "Pig", x => "Chicken");
        }