Đang chuẩn bị liên kết để tải về tài liệu:
Introducing Windows Azure- P18

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

Introducing Windows Azure- P18:The cloud platform is getting more and more attractive to the computing world. Today, service-oriented architecture (SOA) and aspect-oriented programming (AOP) techniques are widely used in enterprise solutions. A question an IT management team or a software development team may ask is, what is the next trend going to be? Cloud computing seems to be the right answer. | CHAPTER 2 ACCESS CLOUD TABLE STORAGE DataBinding private void UpdateTest const string PREVIOUS ENTITY PREVIOUS ENTITY previousEntityAddress Session PREVIOUS ENTITY as Address if null previousEntityAddress addressTableService.Delete previousEntityAddress Address address new Address txtAddress1.Text.Trim 0 txtCity.Text.Trim State combState.SelectedIndex txtZip.Text.Trim txtCounty.Text.Trim txtCountry.Text.Trim string.Empty addressTableService.Insert address Session.Add PREVIOUS ENTITY address for int i 1 i 4 i Thread thread new Thread new ParameterizedThreadStart Update thread.Start new object i address as object thread.Join 100 DataBinding private void Update object parameters AddressTableService addressTableService new AddressTableService TableContext tableContext addressTableService.TableContext var currentEntity from a in tableContext.CreateQuery Address tableContext.TableName where a.RowKey parameters as object 1 as Address .RowKey select a if null currentEntity ICloudEntity currentAddress currentEntity.Single Address int currentValue int.Parse currentAddress as Address .Address2.Trim currentAddress as Address .Address2 58 CHAPTER 2 ACCESS CLOUD TABLE STORAGE Convert.ToString currentValue int parameters as object 0 as object addressTableService.Update currentAddress For demonstration we are going to update only one column Address 2 in the same record to prove the concept described above. The easiest way to reach that goal is to set all of the columns including the PartitionKey and RowKey to empty or null values. Remember that null is a valid value to these key columns. In this way we do not have to specify the keys every time we call the updating method. In btnAddAddress Click we call the UpdateTest method to insert an empty entity and set the Address2 attributed value to 0 . Then we create three work threads to concurrently update the entity we have just inserted. In the thread handler we create a new AddressTableService TableContext and use LINQ to query the .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.