Publish database with EF

This commit is contained in:
2016-05-09 10:48:29 -04:00
parent 1ce89a124e
commit 1ba8f24b10
2 changed files with 5 additions and 3 deletions
@@ -27,7 +27,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<ObjectGroup Name="LeafWebContext" Order="1" Enabled="False"> <ObjectGroup Name="LeafWebContext" Order="1" Enabled="False">
<Destination Path="" /> <Destination Path="" />
<Object Type="DbCodeFirst"> <Object Type="DbCodeFirst">
<Source Path="DBContext" DbContext="LeafWeb.Core.DAL.LeafWebContext, Core" Origin="Configuration" /> <Source Path="DBMigration" DbContext="LeafWeb.Core.DAL.LeafWebContext, Core" MigrationConfiguration="LeafWeb.Core.Migrations.Configuration, Core" Origin="Configuration" />
</Object> </Object>
</ObjectGroup> </ObjectGroup>
</Objects> </Objects>
@@ -22,14 +22,16 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<_DestinationType>AzureWebSite</_DestinationType> <_DestinationType>AzureWebSite</_DestinationType>
<PublishDatabaseSettings> <PublishDatabaseSettings>
<Objects xmlns=""> <Objects xmlns="">
<ObjectGroup Name="LeafWebContext" Order="1" Enabled="False"> <ObjectGroup Name="LeafWebContext" Order="1" Enabled="True">
<Destination Path="Data Source=tcp:leafweb.database.windows.net;Initial Catalog=leafweb;Integrated Security=False;User ID=lwadmin@leafweb;Password=j4f1a2e!;Encrypt=True" Name="Server=tcp:leafweb.database.windows.net;Database=leafweb;User ID=lwadmin@leafweb;Password=j4f1a2e!;Trusted_Connection=False;Encrypt=True" /> <Destination Path="Data Source=tcp:leafweb.database.windows.net;Initial Catalog=leafweb;Integrated Security=False;User ID=lwadmin@leafweb;Password=j4f1a2e!;Encrypt=True" Name="Server=tcp:leafweb.database.windows.net;Database=leafweb;User ID=lwadmin@leafweb;Password=j4f1a2e!;Trusted_Connection=False;Encrypt=True" />
<Object Type="DbCodeFirst"> <Object Type="DbCodeFirst">
<Source Path="DBContext" DbContext="LeafWeb.Core.DAL.LeafWebContext, Core" Origin="Configuration" /> <Source Path="DBMigration" DbContext="LeafWeb.Core.DAL.LeafWebContext, Core" MigrationConfiguration="LeafWeb.Core.Migrations.Configuration, Core" Origin="Configuration" />
</Object> </Object>
</ObjectGroup> </ObjectGroup>
</Objects> </Objects>
</PublishDatabaseSettings> </PublishDatabaseSettings>
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
<PublishProvider>AzureWebSite</PublishProvider>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<MSDeployParameterValue Include="$(DeployParameterPrefix)LeafWebContext-Web.config Connection String"> <MSDeployParameterValue Include="$(DeployParameterPrefix)LeafWebContext-Web.config Connection String">