public void BasicInsertEntity ( ) throws StorageException { // Note: the limitations on an insert operation are // - the serialized payload must be 1 MB or less // - up to 252 properties in addition to the partition key, row key and // timestamp. 255 properties in total // - the serialized payload of each property must be 64 KB or less // Create a new customer entity. CustomerEntity customer1 = new CustomerEntity ( "Harp" , "Walter" ) ; customer1 . setEmail ( "Walter@contoso.com" ) ; customer1 . setPhoneNumber ( "425-555-0101" ) ; // Create an operation to add the new customer to the tablebasics table. TableOperation insertCustomer1 = TableOperation . insert ( customer1 ) ; // Submit the operation to the table service. table . execute ( insertCustomer1 ) ; }
Illustrates how to form and execute a single insert operation .