TAILIEUCHUNG - Introducing Windows Azure- P18

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 previousEntityAddress Address address new Address 0 State address PREVIOUS ENTITY address for int i 1 i 4 i Thread thread new Thread new ParameterizedThreadStart Update new object i address as object 100 DataBinding private void Update object parameters AddressTableService addressTableService new AddressTableService TableContext tableContext var currentEntity from a in Address where parameters as object 1 as Address .RowKey select a if null currentEntity ICloudEntity currentAddress Address int currentValue currentAddress as Address . currentAddress as Address .Address2 58 CHAPTER 2 ACCESS CLOUD TABLE STORAGE currentValue int parameters as object 0 as object 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 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.