Get() публичный Метод

public Get ( string partitionKey, string rowKey ) : dynamic
partitionKey string
rowKey string
Результат dynamic
Пример #1
0
        public void Test09()
        {
            Credentials         credentials = new Credentials(ACCOUNT_NAME, KEY);
            DynamicTableContext context     = new DynamicTableContext(TABLE_NAME, credentials);
            dynamic             item        = context.Get("1", "999"); // item does not exist

            Assert.IsNull(item);
        }
Пример #2
0
 public void Test02()
 {
     Credentials credentials = new Credentials(ACCOUNT_NAME, KEY);
     DynamicTableContext context = new DynamicTableContext(TABLE_NAME, credentials);
     dynamic item = context.Get("1", "1");
     Assert.IsNotNull(item);
     Assert.AreEqual("1", item.PartitionKey);
     Assert.AreEqual("1", item.RowKey);
 }
Пример #3
0
        public void Test02()
        {
            Credentials         credentials = new Credentials(ACCOUNT_NAME, KEY);
            DynamicTableContext context     = new DynamicTableContext(TABLE_NAME, credentials);
            dynamic             item        = context.Get("1", "1");

            Assert.IsNotNull(item);
            Assert.AreEqual("1", item.PartitionKey);
            Assert.AreEqual("1", item.RowKey);
        }
Пример #4
0
 public void Test09()
 {
     Credentials credentials = new Credentials(ACCOUNT_NAME, KEY);
     DynamicTableContext context = new DynamicTableContext(TABLE_NAME, credentials);
     dynamic item = context.Get("1", "999"); // item does not exist
     Assert.IsNull(item);
 }