diff options
-rw-r--r-- | ApartmentManager/HousingWebApi/App_Data/housingdb.mdf | bin | 0 -> 8388608 bytes | |||
-rw-r--r-- | ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf | bin | 0 -> 8388608 bytes | |||
-rw-r--r-- | ApartmentManager/HousingWebApi/HousingWebApi.csproj | 8 | ||||
-rw-r--r-- | ApartmentManager/HousingWebApi/Web.config | 2 |
4 files changed, 6 insertions, 4 deletions
diff --git a/ApartmentManager/HousingWebApi/App_Data/housingdb.mdf b/ApartmentManager/HousingWebApi/App_Data/housingdb.mdf Binary files differnew file mode 100644 index 0000000..44d8031 --- /dev/null +++ b/ApartmentManager/HousingWebApi/App_Data/housingdb.mdf diff --git a/ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf b/ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf Binary files differnew file mode 100644 index 0000000..331f234 --- /dev/null +++ b/ApartmentManager/HousingWebApi/App_Data/housingdb_log.ldf 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 |