aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2017-06-15 00:48:18 +0200
committermarcinzelent <marcin@zelent.net>2017-06-15 00:48:18 +0200
commit867a8f5c00c93b91f466f94268c57a8d16168359 (patch)
treed5783d68df8fe5fa573d913368d6b31ea8dd89cc
parentf41de2e8a58c3e059ef475963051770f541aeca7 (diff)
Added local database file.
-rw-r--r--ApartmentManager/HousingWebApi/App_Data/housingdb.mdfbin0 -> 8388608 bytes
-rw-r--r--ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldfbin0 -> 8388608 bytes
-rw-r--r--ApartmentManager/HousingWebApi/HousingWebApi.csproj8
-rw-r--r--ApartmentManager/HousingWebApi/Web.config2
4 files changed, 6 insertions, 4 deletions
diff --git a/ApartmentManager/HousingWebApi/App_Data/housingdb.mdf b/ApartmentManager/HousingWebApi/App_Data/housingdb.mdf
new file mode 100644
index 0000000..44d8031
--- /dev/null
+++ b/ApartmentManager/HousingWebApi/App_Data/housingdb.mdf
Binary files differ
diff --git a/ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf b/ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf
new file mode 100644
index 0000000..331f234
--- /dev/null
+++ b/ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf
Binary files differ
diff --git a/ApartmentManager/HousingWebApi/HousingWebApi.csproj b/ApartmentManager/HousingWebApi/HousingWebApi.csproj
index b94fb4b..55eac12 100644
--- a/ApartmentManager/HousingWebApi/HousingWebApi.csproj
+++ b/ApartmentManager/HousingWebApi/HousingWebApi.csproj
@@ -212,6 +212,10 @@
<Compile Include="Models\User.cs" />
</ItemGroup>
<ItemGroup>
+ <Content Include="App_Data\housingdb.mdf" />
+ <Content Include="App_Data\housingdb_log.ldf">
+ <DependentUpon>housingdb.mdf</DependentUpon>
+ </Content>
<Content Include="Areas\HelpPage\HelpPage.css" />
<Content Include="Content\bootstrap.css" />
<Content Include="Content\bootstrap.min.css" />
@@ -265,9 +269,7 @@
<Content Include="Views\Shared\Error.cshtml" />
<Content Include="Views\Shared\_Layout.cshtml" />
</ItemGroup>
- <ItemGroup>
- <Folder Include="App_Data\" />
- </ItemGroup>
+ <ItemGroup />
<ItemGroup>
<Content Include="fonts\glyphicons-halflings-regular.woff" />
</ItemGroup>
diff --git a/ApartmentManager/HousingWebApi/Web.config b/ApartmentManager/HousingWebApi/Web.config
index e610a4b..be1437d 100644
--- a/ApartmentManager/HousingWebApi/Web.config
+++ b/ApartmentManager/HousingWebApi/Web.config
@@ -80,6 +80,6 @@
</providers>
</entityFramework>
<connectionStrings>
- <add name="DataModel" connectionString="data source=(localdb)\MSSQLLocalDB;initial catalog=housingdb;integrated security=True;pooling=False;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
+ <add name="DataModel" connectionString="data source=(LocalDB)\MSSQLLocalDB;attachdbfilename=|DataDirectory|\housingdb.mdf;integrated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration> \ No newline at end of file