Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Introducing Windows Azure- P60: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 8 SQL AZURE else if null this. parentForm this. parentForm.DisplayMessage string.Format Can not find the parameter 0 txtParameter.Text true private void radioButtonOuery CheckedChanged object sender EventArgs e this.groupParameter.Enabled false private void radioButtonStoredProcedure CheckedChanged object sender EventArgs e this.groupParameter.Enabled true private void richTextBoxCommandText MouseUp object sender MouseEventArgs e if null eventSelectedTextChanged try eventSelectedTextChanged this new SelectedTextArgs String.IsNullOrEmpty SelectedText null this catch void richTextBoxCommandText PreviewKeyDown object sender PreviewKeyDownEventArgs e if null eventBubblePreviewKeyDown eventBubblePreviewKeyDown this e private void SOLDataServiceControl Leave object sender EventArgs e this.richTextBoxCommandText.Clear this.richTextBoxCommandText.Text sqlDatabaseAccessService.Command.Text richTextBoxCommandText MouseUp this null 293 CHAPTER 8 SQL AZURE FormSQLAzureConnect The main window of SQLAzureConnect also has a binding source object defined to bind the data source to the data object instance s XML SQLDatabaseAccessRoot as Figure 8-25 shows. .O None S JJ Other Data Sources Éi- -ÜJ Project Data Sources eii Ji Schema.SQLDatabaseAcces SQLDatabaseAccessRoot SQLDatabaseAccessRootSqll Ê Schema.SQLParameter I- -I i ij Add Project Data Source. Currently data bound to SQLDatabaseAccessRoot . Figure 8-25. A BindingSource ofthe FormSQLAzureConnect is defined to bind the data source to the data object instance s XML SQLDatabaseAccessRoot When an XML data file is loaded the data will be deserialized into a data object and assigned to the member variable sqlDataAccessRoot and a member method UpdateUI is called. This method loops through all the predefined services factors out the SQLDataServiceControls and calls the AddPage method to assign each control to a tab page. Each SQLDatabaseControl has an underlying ParameterControl if the SQL command type is a stored procedure .