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

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Introducing Windows Azure- P17: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 namespace CloudTableStorageService WebRole.CloudTableStorageDataService using Microsoft.Samples.ServiceHosting.StorageClient using CloudTableStorageService WebRole.CloudTableStorageDataContext using CloudTableStorageService WebRole.CloudTableStrorageDataEntity abstract public class DataTableService ICloudTableStorageService protected StorageAccountInfo account null protected TableContext dataTableContext null protected CloudTableServiceFactory cloudTableFactory new CloudTableServiceFactory public DataTableService Get the settings from the Service Configuration file account StorageAccountInfo.GetDefaultTableStorageAccountFromConfiguration cloudTableFactory new CloudTableServiceFactory public TableContext TableContext return dataTableContext virtual public bool Insert ICloudEntity entity bool success false ICloudEntity dependency null try dataTableContext.AddObject dataTableContext.TableName entity dataTableContext.SaveChanges dependency entity.GetDependencyEntity while null dependency cloudTableFactory new CloudTableServiceFactory cloudTableFactory.FactoryCloudTableService dependency .Insert dependency dependency dependency.GetDependencyEntity success true catch return success virtual public bool Update ICloudEntity entity 53 CHAPTER 2 ACCESS CLOUD TABLE STORAGE bool success false if null entity dataTableContext.MergeOption MergeOption.PreserveChanges dataTableContext.AttachTo dataTableContext.TableName entity dataTableContext.UpdateObject entity dataTableContext.SaveChanges success true return success virtual public bool Delete ICloudEntity entity bool success false if null entity foreach ICloudEntity entityType in entity.DependencyType ICloudEntity dependency QueryDependencyEntity entityType entity as TableStorageEntity .RowKey if null dependency cloudTableFactory.FactoryCloudTableService dependency .Delete dependency try dataTableContext.AttachTo dataTableContext.TableName entity dataTableContext.DeleteObject entity .

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.