Skip to content

Commit

Permalink
Christopher - Final Checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekTrainer committed Jan 29, 2015
1 parent d9fade1 commit c7e8993
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ChristopherDemos/MusicStore/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
Database.SetInitializer<MusicStoreDataContext>(new MusicStoreDataContextInitializer());
//Database.SetInitializer<MusicStoreDataContext>(new MusicStoreDataContextInitializer());

AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
Expand Down
1 change: 1 addition & 0 deletions ChristopherDemos/MusicStore/MusicStore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
<Content Include="Content\Site.css" />
<Content Include="Scripts\bootstrap.js" />
<Content Include="Scripts\bootstrap.min.js" />
<None Include="Properties\PublishProfiles\EFMVA.pubxml" />
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
<Content Include="Scripts\jquery-1.10.2.js" />
<Content Include="Scripts\jquery-1.10.2.min.js" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://efmva.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<MSDeployServiceURL>efmva.scm.azurewebsites.net:443</MSDeployServiceURL>
<DeployIisAppPath>EFMVA</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>$EFMVA</UserName>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
<PublishDatabaseSettings>
<Objects xmlns="">
<ObjectGroup Name="DefaultConnection" Order="1" Enabled="False">
<Destination Path="Data Source=tcp:frroph2bu2.database.windows.net,1433;Initial Catalog=EFMVA_db;User ID=EFMVA@frroph2bu2;Password=p@SSW0RD" Name="Data Source=tcp:frroph2bu2.database.windows.net,1433;Initial Catalog=EFMVA_db;User Id=EFMVA@frroph2bu2;Password=p@SSW0RD" />
<Object Type="DbCodeFirst">
<Source Path="DBContext" DbContext="MusicStore.Models.ApplicationDbContext, MusicStore" Origin="Configuration" />
</Object>
</ObjectGroup>
<ObjectGroup Name="MusicStore.Models.MusicStoreDataContext" Order="2" Enabled="True">
<Destination Path="Data Source=tcp:frroph2bu2.database.windows.net,1433;Initial Catalog=EFMVA_db;User ID=EFMVA@frroph2bu2;Password=p@SSW0RD" Name="Data Source=tcp:frroph2bu2.database.windows.net,1433;Initial Catalog=EFMVA_db;User Id=EFMVA@frroph2bu2;Password=p@SSW0RD" />
<Object Type="DbCodeFirst">
<Source Path="DBMigration" DbContext="MusicStore.Models.MusicStoreDataContext, MusicStore" MigrationConfiguration="MusicStore.Migrations.Configuration, MusicStore" Origin="Convention" />
</Object>
</ObjectGroup>
</Objects>
</PublishDatabaseSettings>
</PropertyGroup>
<ItemGroup>
<MSDeployParameterValue Include="$(DeployParameterPrefix)DefaultConnection-Web.config Connection String">
<ParameterValue>Data Source=tcp:frroph2bu2.database.windows.net,1433;Initial Catalog=EFMVA_db;User Id=EFMVA@frroph2bu2;Password=p@SSW0RD</ParameterValue>
</MSDeployParameterValue>
<MSDeployParameterValue Include="$(DeployParameterPrefix)MusicStore.Models.MusicStoreDataContext-Web.config Connection String">
<ParameterValue>Data Source=tcp:frroph2bu2.database.windows.net,1433;Initial Catalog=EFMVA_db;User Id=EFMVA@frroph2bu2;Password=p@SSW0RD</ParameterValue>
</MSDeployParameterValue>
</ItemGroup>
<ItemGroup>
<_ConnectionStringsToInsert Include="MusicStore.Models.MusicStoreDataContext" />
</ItemGroup>
</Project>
7 changes: 7 additions & 0 deletions ChristopherDemos/MusicStore/Web.Debug.config
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@
</customErrors>
-->
</system.web>
<entityFramework>
<contexts>
<context type="MusicStore.Models.MusicStoreDataContext, MusicStore">
<databaseInitializer type="MusicStore.Models.MusicStoreDataContextInitializer, MusicStore" />
</context>
</contexts>
</entityFramework>
</configuration>

0 comments on commit c7e8993

Please sign in to comment.