Browse files

Updates to Azure SDK 1.8

  • Loading branch information...
1 parent 4f754dd commit aefc83dd28bb29650375924b5ab2c2675e6f1dfd @jrowies jrowies committed Nov 2, 2012
Showing with 292 additions and 95 deletions.
  1. +0 −1 .gitignore
  2. +38 −38 HOL.md
  3. +2 −1 Lab.xml
  4. +2 −0 README.md
  5. +6 −0 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/.nuget/NuGet.Config
  6. BIN Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/.nuget/NuGet.exe
  7. +150 −0 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/.nuget/NuGet.targets
  8. +17 −10 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks.sln
  9. +7 −6 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/AdventureWorks.ccproj
  10. +2 −2 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/ServiceConfiguration.Cloud.cscfg
  11. +2 −2 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/ServiceConfiguration.Local.cscfg
  12. +2 −2 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/ServiceDefinition.csdef
  13. +26 −8 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/AdventureWorksWeb.csproj
  14. +2 −2 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/Properties/AssemblyInfo.cs
  15. +26 −21 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/Web.config
  16. +8 −0 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/packages.config
  17. +1 −1 Source/Ex4-ConnectingViaClientLibraries/Begin/ConnectDemoApp/SQLDatabaseConnectionDemo.cs
  18. +1 −1 Source/Ex4-ConnectingViaClientLibraries/End/ConnectDemoApp/SQLDatabaseConnectionDemo.cs
  19. BIN images/adding-new-allowed-ip.png
  20. BIN images/addingrowstable.png
  21. BIN images/creatingnewtable.png
  22. BIN images/creatingtableschema.png
  23. BIN images/insertcaption.png
  24. BIN images/manage-database.png
  25. BIN images/new-database-settings.png
  26. BIN images/new-sql-database.png
  27. BIN images/savingdata.png
  28. BIN images/server-settings.png
  29. BIN images/signingsqlazuremanagementportal.png
  30. BIN images/signingsqldatabasemanagementportal.png
  31. BIN images/sql-azure-server-allowed-ip-addresses.png
  32. BIN images/sql-database-server-allowed-ip-addresses.png
  33. BIN images/sql-server-information-page.png
  34. BIN images/sqlazuredesignview.png
  35. BIN images/sqlazuremanagementportaladministrationpage.png
  36. BIN images/sqlazureprojectslist.png
  37. BIN images/sqldatabasedesignview.png
  38. BIN images/sqldatabasemanagementportaladministrationpage.png
  39. BIN images/sqldatabaseserverlist.png
View
1 .gitignore
@@ -49,6 +49,5 @@ pkg
*.dbmdl
coverage
packages
-.nuget
*.docstates
*.InstallLog
View
76 HOL.md
@@ -10,6 +10,8 @@ SQL Database makes the power of Microsoft SQL Server available in a Cloud Hosted
This hands-on lab will walk through a series of simple use cases for SQL Database such as provisioning your account, creating, and using a database. You will create a simple Windows Azure application to allow you to manipulate the data in the Contact table of a database running in SQL Database.
+> **Note:** A Visual Studio 2012 version of this Hands-on Lab can be found in the latest build of the [Windows Azure training kit](http://bit.ly/WindowsAzureTK) or in [GitHub](https://github.com/WindowsAzure-TrainingKit/HOL-IntroSQLDatabase-VS2012).
+
<a name="Objectives"></a>
### Objectives ###
@@ -31,7 +33,7 @@ The following is required to complete this hands-on lab:
- [Microsoft .NET Framework 4.0][1]
- [Microsoft Visual Studio 2010][2]
- [SQL Server Management Studio 2012 Express Edition (or higher)][3]
-- [Windows Azure Tools for Microsoft Visual Studio 1.7][4]
+- [Windows Azure Tools for Microsoft Visual Studio 1.8][4]
- Access to a **SQL Database** account with a server created
- **SQL Database Firewall** enabled for machine running this lab
- A Windows Azure subscription - [sign up for a free trial](http://aka.ms/WATK-FreeTrial)
@@ -124,12 +126,12 @@ In this task, you will log into the SQL Database portal to obtain the name of th
1. Finally, the new server information, including **Fully Qualified Server Name**, is shown.
- ![SQL Database server list](images/sqlazureprojectslist.png?raw=true)
+ ![SQL Database server list](images/sqldatabaseserverlist.png?raw=true)
_SQL Database server list_
>**Note:** The fully qualified domain name of the server uses the following format:
- _\<ServerName\>.database.windows.net_ where _\<ServerName\>_ identifies the server, for example, _plin17p2v1.database.windows.net_.
+ _\<ServerName\>.database.windows.net_ where _\<ServerName\>_ identifies the server, for example, _udi4slmm7g.database.windows.net_.
1. Click on your server name from the list of SQL servers created, and select **Dashboard** from the top menu. Review the information displayed from your SQL Server.
@@ -139,15 +141,13 @@ In this task, you will log into the SQL Database portal to obtain the name of th
1. Click **Configure** from the top menu to setup firewall rules for the server.
- ![SQL Server allowed IP addresses](images/sql-azure-server-allowed-ip-addresses.png?raw=true)
+ ![SQL Server allowed IP addresses](images/sql-database-server-allowed-ip-addresses.png?raw=true)
_SQL Database server information page_
>**Note:** The **allowed ip addresses** allows you to specify a list of IP addresses that can access your SQL Database Server. The firewall will deny all connections by default, so **be sure to configure your allow list** so that existing clients can connect to the server.
-1. Enter _ClientIP_ in the **Rule Name** field. Copy your **Current Client IP Address** value and paste it into **Start IP Address** and **End IP Address** fields to allow yourself access the server. Click the Tick next to the End IP Address value to add the rule.
-
- Finally in the **Windows Azure Services** select _YES_ to allow Azure accessing your SQL Server, and click **Save**.
+1. Click on **Add to allowed IP addresses** to allow yourself access the server. In **Windows Azure Services** make sure that _YES_ is selected to allow Azure accessing your SQL Server, and then click **Save**.
![Adding a new Allowed IP](images/adding-new-allowed-ip.png?raw=true)
@@ -160,18 +160,18 @@ In this task, you will log into the SQL Database portal to obtain the name of th
<a name="Exercise2"></a>
### Exercise 2: Working with Data Basic DDL and DML ###
-In this exercise, you will create a new database and work with its data. This means you will create some tables, index those tables appropriately, and then insert and query data. For this purpose, you will use two different tools. The first tool, the Database Manager for SQL Azure, is a browser based Silverlight database administration tool that you can access from the Windows Azure portal. The other tool is SQL Server Management Studio, a tool normally associated with SQL Server management. You will see that this tool is equally useful for managing your SQL Databases.
+In this exercise, you will create a new database and work with its data. This means you will create some tables, index those tables appropriately, and then insert and query data. For this purpose, you will use two different tools. The first tool, the Database Manager for SQL Database, is a browser based Silverlight database administration tool that you can access from the Windows Azure portal. The other tool is SQL Server Management Studio, a tool normally associated with SQL Server management. You will see that this tool is equally useful for managing your SQL Databases.
<a name="Ex2Task1"></a>
#### Task 1 - Creating a New Database ####
-1. In the Windows Azure Management portal UI, select **New** from the bottom pane, **SQL Database** | **Custom Create**.
+1. In the Windows Azure Management portal UI, select **New** from the bottom pane, **Data Services** | **SQL Database** | **Custom Create**.
![New SQL Database](images/new-sql-database.png?raw=true)
_Creating a new database_
-1. In the **Database Settings** dialog, set the **Name** to _HoLTestDB_, select the _Web_ **Edition**, leave the **Max Size** and **Collation** values with the suggested values, and select the **Server** you created in the previous exercise.
+1. In the **Specify database settings** dialog, set the **Name** to _HoLTestDB_, select the _Web_ **Edition**, leave the **Limit database size** and **Collation** values with the suggested values, and select the **Server** you created in the previous exercise.
![ChoosingDatabaseFeatures](images/new-database-settings.png?raw=true)
@@ -184,36 +184,36 @@ In this exercise, you will create a new database and work with its data. This me
>Once a database reaches its maximum size, you cannot insert additional data until you delete some data to free storage space or increase its maximum size.
<a name="Ex2Task2"></a>
-#### Task 2 - Managing your Database with the Database Manager for SQL Azure ####
+#### Task 2 - Managing your Database with the Database Manager for SQL Database ####
-In this task, you use the Database Manager for SQL Azure, a Silverlight client that runs in your browser, to connect to your SQL Database, create and populate a table, and then query its contents.
+In this task, you use the Database Manager for SQL Database, a Silverlight client that runs in your browser, to connect to your SQL Database, create and populate a table, and then query its contents.
1. In the Windows Azure Management portal UI Home Page, select **SQL Databases** from the left pane, select _HoLTestDB_ database and click **Manage** on the bottom pane.
![Managing a Database](images/manage-database.png?raw=true)
_Managing a database_
-1. You will be redirected to the **SQL Azure Management Portal**. Enter your Server Administrator username and password and then click **Log on**.
+1. You will be redirected to the **SQL Database Management Portal**. Enter your Server Administrator username and password and then click **Log on**.
- ![SigningSQLAzureManagementPortal](images/signingsqlazuremanagementportal.png?raw=true)
+ ![SigningSQLDatabaseManagementPortal](images/signingsqldatabasemanagementportal.png?raw=true)
- _Signing in to the SQL Azure Management Portal_
+ _Signing in to the SQL Database Management Portal_
1. Wait until you are connected to your database and the **Administration** page is shown.
1. Select the **HoLTestDB** database on the left pane.
- ![SQLAzureManagementPortalAdministrationPage](images/sqlazuremanagementportaladministrationpage.png?raw=true)
+ ![SQLDatabaseManagementPortalAdministrationPage](images/sqldatabasemanagementportaladministrationpage.png?raw=true)
- _SQL Azure Management Portal Administration page_
+ _SQL Database Management Portal Administration page_
1. On the left pane, click **Design** option.
- ![SQLAzureDesignView](images/sqlazuredesignview.png?raw=true)
+ ![SQLDatabaseDesignView](images/sqldatabasedesignview.png?raw=true)
- _SQL Azure Design view_
+ _SQL Database Design view_
1. Make sure **Tables** option is selected in the navigation menu and click **New table**.
@@ -237,9 +237,9 @@ In this task, you use the Database Manager for SQL Azure, a Silverlight client t
1. Once the table is saved, click **Data** in the navigation menu.
- ![InsertCaption](images/insertcaption.png?raw=true)
+ ![Selecting Data in the navigation menu](images/insertcaption.png?raw=true)
- _Insert Caption_
+ _Selecting Data in the navigation menu_
1. Now, click **Add Row** and enter sample data for the _Name_ and _Age_ columns.
@@ -276,7 +276,7 @@ In this task, you use SQL Server Management Studio, a tool typically used for ma
1. Open SQL Server Management Studio from **Start | All Programs | Microsoft SQL Server 2012 | SQL Server Management Studio**. You will be presented with a logon dialog.
1. In the **Connect to Server** dialog, enter your login information ensuring that you select **SQL Server Authentication**. SQL Database currently only supports SQL Server Authentication.
- ![ConnectingSQLAzureSSMS](images/connectingsqlazuressms.png?raw=true)
+ ![ConnectingSQLDatabaseSSMS](images/connectingsqlazuressms.png?raw=true)
_Connecting to SQL Database with SQL Server Management Studio_
1. Click **Connect**.
@@ -292,15 +292,15 @@ In this task, you use SQL Server Management Studio, a tool typically used for ma
_Creating a new query window_
-1. You now have a query window with an active connection to your account. You can test your connection by display the result of the **@@version** scalar function. To do this, type the following statement into the query window and press the **Execute** button. You will get back a scalar result that indicates the edition as Microsoft SQL Azure.
+1. You now have a query window with an active connection to your account. You can test your connection by displaying the result of the **@@version** scalar function. To do this, type the following statement into the query window and press the **Execute** button. You will get back a scalar result that indicates the edition as Microsoft SQL Database.
````T-SQL
SELECT @@version
````
- ![RetrievingSQLAzureVersion](images/retrievingsqlazureversion.png?raw=true)
+ ![RetrievingSQLDatabaseVersion](images/retrievingsqlazureversion.png?raw=true)
- _Retrieving the SQL Azure version_
+ _Retrieving the SQL Database version_
1. Replace the previous query with the statement shown below and click **Execute.** Notice that the results grid shows the databases currently accessible.
@@ -401,7 +401,7 @@ Much like SQL Server, SQL Database allows you to create additional logins and th
)
````
- >**Note:** SQL Database requires that every table have a clustered index. If you create a table without a clustered index, you will not be able to insert rows into the table until you have created one.
+ >**Note:** SQL Database requires that every table has a clustered index. If you create a table without a clustered index, you will not be able to insert rows into the table until you have created one.
Because the clustered index determines the order of rows on disk, and thus affects certain queries, you may choose to place the clustered index on a column other than the primary key column.
1. You will add an index on the _EmailAddress_ field. To do this, execute the following query:
@@ -497,10 +497,10 @@ The purpose of this exercise is to demonstrate just how simple it is to work wit
<a name="Ex3Task1"></a>
#### Task 1 - Loading the Sample Database into SQL Database ####
-1. Connect to the _HoLTestDB_ database on your SQL Database server using the _HoLUser_ login that you created in the previous exercises. You can use either SQL Server Management Studio or the Database Manager for SQL Azure to perform these steps.
-1. If you are using SQL Server Management Studio, in the **File** menu, select **Open** | **File** and then navigate to the **Assets** folder inside the **Source** folder of this lab; if you use the Database Manager for SQL Azure, select the **Database** context on the upper left corner and click the **Open Query** button in the **File** group. Select the **AdventureWorks2008LT_Azure.sql** file and click **Open**.
+1. Connect to the _HoLTestDB_ database on your SQL Database server using the _HoLUser_ login that you created in the previous exercises. You can use either SQL Server Management Studio or the Database Manager for SQL Database to perform these steps.
+1. If you are using SQL Server Management Studio, in the **File** menu, select **Open** | **File** and then navigate to the **Assets** folder inside the **Source** folder of this lab; if you use the Database Manager for SQL Database, select the **Database** context on the upper left corner and click the **Open Query** button in the **File** group. Select the **AdventureWorks2008LT_Azure.sql** file and click **Open**.
- >**Note:** This script contains a cleaned up export script from the _AdventureWorksLT2008_ sample database available for download in the [Codeplex sample databases project site](http://msftdbprodsamples.codeplex.com/). SQL Database sample databases will be available for downloading that you could use to replace this script file.
+ >**Note:** This script contains a cleaned up export script from the _AdventureWorksLT2008_ sample database available for download in the [Codeplex sample databases project site](http://msftdbprodsamples.codeplex.com/).
1. Execute the query. This may take a few minutes, as you are creating a subset of the Adventure Works database.
@@ -516,21 +516,21 @@ In this task, you create a new Visual Studio project for a Windows Azure Web Sit
1. In the **New Project** dialog, expand **Visual C#** in the **Installed Templates** list and select **Cloud**.
-1. In the **Templates** list, select **Windows Azure Cloud Service**. Set the name of the project to **AdventureWorks** and the location inside **Ex3-BuildingSQLAzureApp** in the **Source** folder of the lab. Ensure that **Create directory for solution** is checked and then set the name of the solution to **Begin**. Click **OK** to create the project.
+1. In the **Templates** list, select **Windows Azure Cloud Service**. Set the name of the project to **"AdventureWorks"** and the location inside **Ex3-BuildingSQLAzureApp** in the **Source** folder of the lab. Ensure that **Create directory for solution** is checked and then set the name of the solution to **"Begin"**. Click **OK** to create the project.
![CreatingNewWebCloudService](images/creatingnewwebcloudservice.png?raw=true)
_Creating a new Web Cloud Service_
-1. In the **New Windows Azure Project** dialog, inside the **Roles** panel, expand the tab for Visual C#, select **ASP.NET Web Role** from the list of available roles and click the right button (**>**) to add an instance of this role to the solution. Before closing the dialog, select the new role in the right panel, click the pencil icon and rename the role as **AdventureWorksWeb**. Click **OK** to create the cloud service solution.
+1. In the **New Windows Azure Project** dialog, inside the **Roles** panel, expand the tab for Visual C#, select **ASP.NET Web Role** from the list of available roles and click the right button **(>)** to add an instance of this role to the solution. Before closing the dialog, select the new role in the right panel, click the pencil icon and rename the role as **AdventureWorksWeb**. Click **OK** to create the cloud service solution.
![AddingWebRoleSolution](images/addingwebrolesolution.png?raw=true)
_Adding a Web Role to the Solution_
1. When the project template has finished creating items, you should be presented with the **Default.aspx** page. If not, open this file.
-1. Ensure that you are viewing the Default.aspx page in Design View and click the **Design** button.
+1. Ensure that you are viewing the Default.aspx page in Design View by clicking the **Design** button.
1. Drag and drop a **GridView** control from the _Data_ section of the Toolbox onto the design canvas.
@@ -559,7 +559,7 @@ In this task, you create a new Visual Studio project for a Windows Azure Web Sit
1. If prompted by a **Choose data source** dialog, select **Microsoft SQL Server** and click **Continue**.
1. Now, configure a connection to your SQL Database. In the **Add Connection** dialog, ensure your provider is **Microsoft SQL Server (SqlClient)** selecting **Microsoft SQL Server** inside **Data Source** list and **.NET Framework Data Provider for SQL Server** in the Data Provider combo. Then set the **Server name** to the name of your SQL Database. Next, change the authentication type to **Use SQL Server Authentication** and type the credentials for your SQL Database. Finally, enter _HoLTestDB_ in the database name drop down list.
- ![ConfiguringConnectionDatabaseSQLAzure](images/configuringconnectiondatabasesqlazure.png?raw=true)
+ ![ConfiguringConnectionDatabaseSQLDatabase](images/configuringconnectiondatabasesqlazure.png?raw=true)
_Configuring a connection to the HolTestDB database in SQL Database_
@@ -621,7 +621,7 @@ In this task, you create a new Visual Studio project for a Windows Azure Web Sit
In this exercise, you will learn how to use ADO.NET, ODBC, OLEDB and LINQ to SQL technologies to connect to your SQL Database and perform some simple T-SQL operations. In addition, you will see how to connect to the database from other technologies like Java and PHP.
-Using Microsoft Technologies, you will see that the way in which you interact with your SQL Database from your applications is the same as a traditional SQL database. The main differences between the technologies lie in the type of connection and the connection strings used to connect to SQL Database. After the connection is established, you can then use the appropriate inheritor of the ‘DbCommand’ to issue your commands to SQL Database.
+Using Microsoft Technologies, you will see that the way in which you interact with your Windows Azure SQL Database from your applications is the same as a traditional SQL Database. The main differences between the technologies lie in the type of connection and the connection strings used to connect to Windows Azure SQL Database. After the connection is established, you can then use the appropriate inheritor of the ‘DbCommand’ to issue your commands.
<a name="Ex4Task1"></a>
#### Task 1 - Opening the Begin Solution and Exploring the Common Functionalities ####
@@ -745,7 +745,7 @@ In this task, you will create a class that inherits from the **SQLDatabaseConnec
1. Locate the member variables declared immediately above method **Main** and update the placeholders with the connection information for your SQL Database.
- ![ConfiguringConnectionParametersSQLAzure](images/configuringconnectionparameterssqlazure.png?raw=true)
+ ![ConfiguringConnectionParametersSQLDatabase](images/configuringconnectionparameterssqlazure.png?raw=true)
_Configuring connection parameters for SQL Database_
@@ -960,7 +960,7 @@ In this task, you will create a class that inherits from the **SQLDatabaseConnec
#### Task 5 - Connecting to SQL Database Using Entity Framework ####
You have connected in three different ways to the database on SQL Database. The last technology that you are going to try will be **Entity Framework**. You will notice that the class implementation for this demo will not inherit from the **SQLDatabaseConnectionDemo** class because when using **Entity Framework**, you do not have to manage Connections and Commands; those are administered by the underlying technology and you do not have to worry about them.
-1. Open the **App.config** file and change the connection string to point to your SQL Database, and to connect using the test user created earlier in this lab.
+1. Open the **App.config** file and change the connection string to point to your SQL Database, and enter the password to connect using the test user created earlier in this lab.
>**Note:** This step is required because **Entity Framework** gets the connection settings from the configuration file.
@@ -982,7 +982,7 @@ You have connected in three different ways to the database on SQL Database. The
_Choosing model contents_
-1. In the **Choose Your Database Objects** step, select all database objects, select **Pluralize or singuralize generated object names**, and click **Finish**.
+1. In the **Choose Your Database Objects** step, select all database objects, select **Pluralize or singularize generated object names**, and click **Finish**.
![ChoosingDatabaseObjects](images/choosingdatabaseobjects.png?raw=true)
@@ -1115,7 +1115,7 @@ sqlConn.close();
<a name="Summary"></a>
## Summary ##
-In this lab, you have looked at the basics of working with SQL Database. If you have any SQL Server experience, you may have found the lab familiar and that is, indeed, the point. Working with SQL Database should be very familiar to anyone who has worked with SQL Server.
+In this lab, you have looked at the basics of working with Windows Azure SQL Database. If you have any SQL Server experience, you may have found the lab familiar and that is, indeed, the point. Working with SQL Database should be very familiar to anyone who has worked with SQL Server.
You learned to create new databases, logins and users for those databases. You saw that for the most part, you could simply create objects in SQL Database as you would with an on-premise SQL Server.
View
3 Lab.xml
@@ -12,10 +12,11 @@
<Description>In this hands-on lab you will walk through a series of simple use cases for Windows Azure SQL Database such as: managing logins, creating database objects and query your database.</Description>
<Document ConversionType="Html">.\HOL.md</Document>
<Title>Introduction to Windows Azure SQL Database</Title>
- <Version>3.1.2</Version>
+ <Version>3.1.3</Version>
<Source>.\source</Source>
<DependencyChecker>.\source\Setup\Dependencies.depi</DependencyChecker>
<CustomProperties>
+ <Property Name="ContentTag" Value="1.8" />
<Property Name="ContentType" Value="VS2010" />
<Property Name="GitHubRepository" Value="https://github.com/WindowsAzure-TrainingKit/HOL-IntroSQLDatabase" />
</CustomProperties>
View
2 README.md
@@ -1,5 +1,7 @@
# Introduction to Windows Azure SQL Database #
+> **Note:** A Visual Studio 2012 version of this Hands-on Lab can be found in [GitHub](https://github.com/WindowsAzure-TrainingKit/HOL-IntroSQLDatabase-VS2012).
+
## Hands-on Lab ##
### Introduction ###
View
6 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/.nuget/NuGet.Config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ </solution>
+</configuration>
View
BIN Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/.nuget/NuGet.exe
Binary file not shown.
View
150 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/.nuget/NuGet.targets
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
+
+ <!-- Enable the restore command to run before builds -->
+ <RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>
+
+ <!-- Property that enables building a package from a project -->
+ <BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>
+
+ <!-- Determines if package restore consent is required to restore packages -->
+ <RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>
+
+ <!-- Download NuGet.exe if it does not already exist -->
+ <DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false</DownloadNuGetExe>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" '$(PackageSources)' == '' ">
+ <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
+ <!--
+ <PackageSource Include="https://nuget.org/api/v2/" />
+ <PackageSource Include="https://my-nuget-source/nuget/" />
+ -->
+ </ItemGroup>
+
+ <PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
+ <!-- Windows specific commands -->
+ <NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
+ <PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
+ <!-- We need to launch nuget.exe with the mono command if we're not on windows -->
+ <NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
+ <PackagesConfig>packages.config</PackagesConfig>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <!-- NuGet command -->
+ <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
+ <PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
+
+ <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
+ <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
+
+ <PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
+
+ <RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
+ <!-- Commands -->
+ <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
+ <BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
+
+ <!-- We need to ensure packages are restored prior to assembly resolve -->
+ <ResolveReferencesDependsOn Condition="$(RestorePackages) == 'true'">
+ RestorePackages;
+ $(ResolveReferencesDependsOn);
+ </ResolveReferencesDependsOn>
+
+ <!-- Make the build depend on restore packages -->
+ <BuildDependsOn Condition="$(BuildPackage) == 'true'">
+ $(BuildDependsOn);
+ BuildPackage;
+ </BuildDependsOn>
+ </PropertyGroup>
+
+ <Target Name="CheckPrerequisites">
+ <!-- Raise an error if we're unable to locate nuget.exe -->
+ <Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
+ <SetEnvironmentVariable EnvKey="VisualStudioVersion" EnvValue="$(VisualStudioVersion)" Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' " />
+ <!--
+ Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
+ This effectively acts as a lock that makes sure that the download operation will only happen once and all
+ parallel builds will have to wait for it to complete.
+ -->
+ <MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT" />
+ </Target>
+
+ <Target Name="_DownloadNuGet">
+ <DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
+ </Target>
+
+ <Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(RestoreCommand)"
+ Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />
+
+ <Exec Command="$(RestoreCommand)"
+ LogStandardErrorAsError="true"
+ Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
+ </Target>
+
+ <Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
+ <Exec Command="$(BuildCommand)"
+ Condition=" '$(OS)' != 'Windows_NT' " />
+
+ <Exec Command="$(BuildCommand)"
+ LogStandardErrorAsError="true"
+ Condition=" '$(OS)' == 'Windows_NT' " />
+ </Target>
+
+ <UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <OutputFilename ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Reference Include="System.Core" />
+ <Using Namespace="System" />
+ <Using Namespace="System.IO" />
+ <Using Namespace="System.Net" />
+ <Using Namespace="Microsoft.Build.Framework" />
+ <Using Namespace="Microsoft.Build.Utilities" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ OutputFilename = Path.GetFullPath(OutputFilename);
+
+ Log.LogMessage("Downloading latest version of NuGet.exe...");
+ WebClient webClient = new WebClient();
+ webClient.DownloadFile("https://nuget.org/nuget.exe", OutputFilename);
+
+ return true;
+ }
+ catch (Exception ex) {
+ Log.LogErrorFromException(ex);
+ return false;
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+
+ <UsingTask TaskName="SetEnvironmentVariable" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+ <ParameterGroup>
+ <EnvKey ParameterType="System.String" Required="true" />
+ <EnvValue ParameterType="System.String" Required="true" />
+ </ParameterGroup>
+ <Task>
+ <Using Namespace="System" />
+ <Code Type="Fragment" Language="cs">
+ <![CDATA[
+ try {
+ Environment.SetEnvironmentVariable(EnvKey, EnvValue, System.EnvironmentVariableTarget.Process);
+ }
+ catch {
+ }
+ ]]>
+ </Code>
+ </Task>
+ </UsingTask>
+</Project>
View
27 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks.sln
@@ -1,24 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
-Project("{CC5FD16D-436D-48AD-A40C-5A424C6E3E79}") = "AdventureWorks", "AdventureWorks\AdventureWorks.ccproj", "{435DA072-B4CF-4490-BC5B-F81A1334BB79}"
+Project("{CC5FD16D-436D-48AD-A40C-5A424C6E3E79}") = "AdventureWorks", "AdventureWorks\AdventureWorks.ccproj", "{6E3C657A-ABA6-4120-9878-F46B5E56FEAA}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventureWorksWeb", "AdventureWorksWeb\AdventureWorksWeb.csproj", "{DB547000-81F0-44DB-965E-AD3B01FA9119}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdventureWorksWeb", "AdventureWorksWeb\AdventureWorksWeb.csproj", "{97B5DF4A-E859-49EA-90B9-C7E74F2B2A8A}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{FCBF19CD-7CA0-442A-B7E6-81DE25608A79}"
+ ProjectSection(SolutionItems) = preProject
+ .nuget\NuGet.Config = .nuget\NuGet.Config
+ .nuget\NuGet.exe = .nuget\NuGet.exe
+ .nuget\NuGet.targets = .nuget\NuGet.targets
+ EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {435DA072-B4CF-4490-BC5B-F81A1334BB79}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {435DA072-B4CF-4490-BC5B-F81A1334BB79}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {435DA072-B4CF-4490-BC5B-F81A1334BB79}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {435DA072-B4CF-4490-BC5B-F81A1334BB79}.Release|Any CPU.Build.0 = Release|Any CPU
- {DB547000-81F0-44DB-965E-AD3B01FA9119}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DB547000-81F0-44DB-965E-AD3B01FA9119}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DB547000-81F0-44DB-965E-AD3B01FA9119}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DB547000-81F0-44DB-965E-AD3B01FA9119}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6E3C657A-ABA6-4120-9878-F46B5E56FEAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6E3C657A-ABA6-4120-9878-F46B5E56FEAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6E3C657A-ABA6-4120-9878-F46B5E56FEAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6E3C657A-ABA6-4120-9878-F46B5E56FEAA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {97B5DF4A-E859-49EA-90B9-C7E74F2B2A8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {97B5DF4A-E859-49EA-90B9-C7E74F2B2A8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {97B5DF4A-E859-49EA-90B9-C7E74F2B2A8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {97B5DF4A-E859-49EA-90B9-C7E74F2B2A8A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
View
13 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/AdventureWorks.ccproj
@@ -4,8 +4,8 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>1.7</ProductVersion>
- <ProjectGuid>{435da072-b4cf-4490-bc5b-f81a1334bb79}</ProjectGuid>
+ <ProductVersion>1.8</ProductVersion>
+ <ProjectGuid>{6e3c657a-aba6-4120-9878-f46b5e56feaa}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AdventureWorks</RootNamespace>
@@ -33,23 +33,24 @@
</PropertyGroup>
<!-- Items for the project -->
<ItemGroup>
- <ServiceConfiguration Include="ServiceConfiguration.Cloud.cscfg" />
<ServiceDefinition Include="ServiceDefinition.csdef" />
<ServiceConfiguration Include="ServiceConfiguration.Local.cscfg" />
+ <ServiceConfiguration Include="ServiceConfiguration.Cloud.cscfg" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AdventureWorksWeb\AdventureWorksWeb.csproj">
<Name>AdventureWorksWeb</Name>
- <Project>{db547000-81f0-44db-965e-ad3b01fa9119}</Project>
+ <Project>{97b5df4a-e859-49ea-90b9-c7e74f2b2a8a}</Project>
<Private>True</Private>
<RoleType>Web</RoleType>
<RoleName>AdventureWorksWeb</RoleName>
+ <UpdateDiagnosticsConnectionStringOnPublish>True</UpdateDiagnosticsConnectionStringOnPublish>
</ProjectReference>
</ItemGroup>
<!-- Import the target files for this project template -->
<PropertyGroup>
- <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
- <CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\1.7\</CloudExtensionsDir>
+ <VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
+ <CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\1.8\</CloudExtensionsDir>
</PropertyGroup>
<Import Project="$(CloudExtensionsDir)Microsoft.WindowsAzure.targets" />
</Project>
View
4 ...x3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/ServiceConfiguration.Cloud.cscfg
@@ -1,5 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ServiceConfiguration serviceName="AdventureWorks" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="2" osVersion="*" schemaVersion="2012-05.1.7">
+<?xml version="1.0" encoding="utf-8"?>
+<ServiceConfiguration serviceName="AdventureWorks" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="2" osVersion="*" schemaVersion="2012-10.1.8">
<Role name="AdventureWorksWeb">
<Instances count="1" />
<ConfigurationSettings>
View
4 ...x3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/ServiceConfiguration.Local.cscfg
@@ -1,5 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ServiceConfiguration serviceName="AdventureWorks" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="2" osVersion="*" schemaVersion="2012-05.1.7">
+<?xml version="1.0" encoding="utf-8"?>
+<ServiceConfiguration serviceName="AdventureWorks" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="2" osVersion="*" schemaVersion="2012-10.1.8">
<Role name="AdventureWorksWeb">
<Instances count="1" />
<ConfigurationSettings>
View
4 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorks/ServiceDefinition.csdef
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<ServiceDefinition name="AdventureWorks" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-05.1.7">
- <WebRole name="AdventureWorksWeb">
+<ServiceDefinition name="AdventureWorks" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8">
+ <WebRole name="AdventureWorksWeb" vmsize="Small">
<Sites>
<Site name="Web">
<Bindings>
View
34 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/AdventureWorksWeb.csproj
@@ -6,13 +6,16 @@
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{DB547000-81F0-44DB-965E-AD3B01FA9119}</ProjectGuid>
+ <ProjectGuid>{97B5DF4A-E859-49EA-90B9-C7E74F2B2A8A}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AdventureWorksWeb</RootNamespace>
<AssemblyName>AdventureWorksWeb</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <UseIISExpress>false</UseIISExpress>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -33,14 +36,27 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
- <Reference Include="Microsoft.WindowsAzure.Diagnostics" />
- <Reference Include="Microsoft.WindowsAzure.ServiceRuntime" />
- <Reference Include="Microsoft.WindowsAzure.StorageClient" />
+ <Reference Include="Microsoft.WindowsAzure.Configuration, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.1.8.0.0\lib\net35-full\Microsoft.WindowsAzure.Configuration.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.WindowsAzure.Diagnostics, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
+ <Private>True</Private>
+ </Reference>
+ <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+ <HintPath>..\packages\WindowsAzure.Storage.1.7.0.0\lib\net35-full\Microsoft.WindowsAzure.StorageClient.dll</HintPath>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Data.Services.Client" />
<Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Web.Providers">
+ <HintPath>..\packages\Microsoft.AspNet.Providers.Core.1.0\lib\net40\System.Web.Providers.dll</HintPath>
+ </Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
@@ -128,13 +144,14 @@
</Compile>
<Compile Include="WebRole.cs" />
</ItemGroup>
- <ItemGroup>
- <Folder Include="App_Data\" />
- </ItemGroup>
+ <ItemGroup />
<ItemGroup>
<Content Include="Account\Web.config" />
<Content Include="Site.Master" />
</ItemGroup>
+ <ItemGroup>
+ <Content Include="packages.config" />
+ </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
@@ -143,7 +160,7 @@
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
- <DevelopmentServerPort>54445</DevelopmentServerPort>
+ <DevelopmentServerPort>2508</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
@@ -156,6 +173,7 @@
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
+ <Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
View
4 ...e/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/Properties/AssemblyInfo.cs
@@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AdventureWorksWeb")]
-[assembly: AssemblyCopyright("Copyright © 2010")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -20,7 +20,7 @@
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("5db5a5cf-0811-4343-b3f3-0639d3598442")]
+[assembly: Guid("8b0a2a50-9996-4c57-b211-e957ff01cb12")]
// Version information for an assembly consists of the following four values:
//
View
47 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/Web.config
@@ -1,58 +1,63 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
+<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
-
<configuration>
<system.diagnostics>
<trace>
<listeners>
- <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
+ <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
</system.diagnostics>
<connectionStrings>
- <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
+ <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet_964eb6a26fb64c848bc64b34c08ea70f;Integrated Security=True;MultipleActiveResultSets=True"
+ providerName="System.Data.SqlClient" />
<add name="AdventureWorksLTConnectionString" connectionString="Data Source=[SERVERNAME].database.windows.net;Initial Catalog=HoLTestDB;Persist Security Info=True;User ID=HolUser;Password=[PASSWORD]" providerName="System.Data.SqlClient" />
</connectionStrings>
-
<system.web>
<compilation debug="true" targetFramework="4.0" />
-
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
-
- <membership>
+ <membership defaultProvider="DefaultMembershipProvider">
<providers>
<clear />
- <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
+ <!--<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />-->
+ <add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
-
- <profile>
+ <profile defaultProvider="DefaultProfileProvider">
<providers>
<clear />
- <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
+ <!--<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />-->
+ <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
</providers>
</profile>
-
- <roleManager enabled="false">
+ <roleManager enabled="false" defaultProvider="DefaultRoleProvider">
<providers>
<clear />
- <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
+ <!--<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />-->
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
+ <add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
</providers>
</roleManager>
- <machineKey decryption="AES" decryptionKey="0CA3EFAF0F7A5E7A62681C0BF656EE0ECE31ACEE3E1023BA3FAD20EA5F199DE8" validation="SHA1" validationKey="E486444215CE6B80507455E0DE246053EBDDCAE39DE62168764FF0DCE537184F0535D5D9AD66DEDC97DC1ABFF7FA540B4DFD82E5BB196B95D15FF81F75AD5328" />
-
+ <!--
+ If you are deploying to a cloud environment that has multiple web server instances,
+ you should change session state mode from "InProc" to "Custom". In addition,
+ change the connection string named "DefaultConnection" to connect to an instance
+ of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
+ -->
+ <sessionState mode="InProc" customProvider="DefaultSessionProvider">
+ <providers>
+ <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
+ </providers>
+ </sessionState>
</system.web>
-
<system.webServer>
- <modules runAllManagedModulesForAllRequests="true" />
+ <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
-</configuration>
+</configuration>
View
8 Source/Ex3-BuildingSQLAzureApp/end/AdventureWorks/AdventureWorksWeb/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Microsoft.AspNet.Providers" version="1.1" targetFramework="net40" />
+ <package id="Microsoft.AspNet.Providers.Core" version="1.0" targetFramework="net40" />
+ <package id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" targetFramework="net40" />
+ <package id="System.Web.Providers" version="1.2" targetFramework="net40" />
+ <package id="WindowsAzure.Storage" version="1.7.0.0" targetFramework="net40" />
+</packages>
View
2 Source/Ex4-ConnectingViaClientLibraries/Begin/ConnectDemoApp/SQLDatabaseConnectionDemo.cs
@@ -30,7 +30,7 @@ public void ConnectToSQLDatabase(string userName, string password, string dataSo
/// Splits a fully qualified domain name datasource the following format
/// servername.path.to.server;
/// </summary>
- /// <param name="dataSource">The fully qualified domain name of your SQL Azure server</param>
+ /// <param name="dataSource">The fully qualified domain name of your SQL Database server</param>
/// <returns>servername</returns>
protected string GetServerName(string dataSource)
{
View
2 Source/Ex4-ConnectingViaClientLibraries/End/ConnectDemoApp/SQLDatabaseConnectionDemo.cs
@@ -30,7 +30,7 @@ public void ConnectToSQLDatabase(string userName, string password, string dataSo
/// Splits a fully qualified domain name datasource the following format
/// servername.path.to.server;
/// </summary>
- /// <param name="dataSource">The fully qualified domain name of your SQL Azure server</param>
+ /// <param name="dataSource">The fully qualified domain name of your SQL Database server</param>
/// <returns>servername</returns>
protected string GetServerName(string dataSource)
{
View
BIN images/adding-new-allowed-ip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/addingrowstable.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/creatingnewtable.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/creatingtableschema.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/insertcaption.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/manage-database.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/new-database-settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/new-sql-database.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/savingdata.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/server-settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/signingsqlazuremanagementportal.png
Deleted file not rendered
View
BIN images/signingsqldatabasemanagementportal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/sql-azure-server-allowed-ip-addresses.png
Deleted file not rendered
View
BIN images/sql-database-server-allowed-ip-addresses.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/sql-server-information-page.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/sqlazuredesignview.png
Deleted file not rendered
View
BIN images/sqlazuremanagementportaladministrationpage.png
Deleted file not rendered
View
BIN images/sqlazureprojectslist.png
Deleted file not rendered
View
BIN images/sqldatabasedesignview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/sqldatabasemanagementportaladministrationpage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN images/sqldatabaseserverlist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aefc83d

Please sign in to comment.