Skip to content

Commit e96d6b8

Browse files
update code snippet
1 parent 14df4ac commit e96d6b8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

articles/storage/tables/table-storage-design-patterns.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -638,12 +638,7 @@ As discussed in the section Design for querying, the most efficient query is a p
638638
The easiest way to execute a point query is to use the **GetEntityAsync** method as shown in the following C# code snippet that retrieves an entity with a **PartitionKey** of value "Sales" and a **RowKey** of value "212":
639639

640640
```csharp
641-
var retrieveResult = employeeTable.GetEntityAsync<EmployeeEntity>("Sales", "212");
642-
if (retrieveResult.Result != null)
643-
{
644-
EmployeeEntity employee = (EmployeeEntity)queryResult.Result;
645-
...
646-
}
641+
EmployeeEntity employee = await employeeTable.GetEntityAsync<EmployeeEntity>("Sales", "212");
647642
```
648643

649644
Notice how this example expects the entity it retrieves to be of type **EmployeeEntity**.

0 commit comments

Comments
 (0)