Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Restructured the application - moved all data related code to Data pr…
…oject. Moved all WebSite related code into WebApp. Made sure it still compiles and runs fine.
- Loading branch information
Showing
with
105 additions
and 156 deletions.
- +11 −0 Data/Data.csproj
- +1 −1 Data/DataContext.cs
- 0 { → Data}/Migrations/20180128232859_Initial.Designer.cs
- 0 { → Data}/Migrations/20180128232859_Initial.cs
- 0 { → Data}/Migrations/MicroBankContextModelSnapshot.cs
- +1 −1 Data/{ → Models}/BankAccount.cs
- +1 −1 Data/{ → Models}/Customer.cs
- +0 −108 Pages/Index.cshtml
- +0 −3 Pages/_ViewImports.cshtml
- +1 −1 { → WebApp}/Pages/About.cshtml
- +1 −1 { → WebApp}/Pages/About.cshtml.cs
- +1 −1 { → WebApp}/Pages/Account/Create.cshtml
- +2 −1 { → WebApp}/Pages/Account/Create.cshtml.cs
- +1 −1 { → WebApp}/Pages/Account/List.cshtml
- +2 −1 { → WebApp}/Pages/Account/List.cshtml.cs
- +1 −1 { → WebApp}/Pages/Contact.cshtml
- +1 −1 { → WebApp}/Pages/Contact.cshtml.cs
- +1 −1 { → WebApp}/Pages/Error.cshtml
- +1 −1 { → WebApp}/Pages/Error.cshtml.cs
- +8 −0 WebApp/Pages/Index.cshtml
- +1 −1 { → WebApp}/Pages/Index.cshtml.cs
- 0 { → WebApp}/Pages/_Layout.cshtml
- 0 { → WebApp}/Pages/_ValidationScriptsPartial.cshtml
- +3 −0 WebApp/Pages/_ViewImports.cshtml
- 0 { → WebApp}/Pages/_ViewStart.cshtml
- 0 { → WebApp}/Program.cs
- +31 −13 { → WebApp}/Startup.cs
- +9 −5 microbank.csproj → WebApp/WebApp.csproj
- 0 { → WebApp}/appsettings.Development.json
- 0 { → WebApp}/appsettings.json
- 0 { → WebApp}/bundleconfig.json
- 0 { → WebApp}/wwwroot/css/site.css
- 0 { → WebApp}/wwwroot/css/site.min.css
- BIN { → WebApp}/wwwroot/favicon.ico
- 0 { → WebApp}/wwwroot/images/banner1.svg
- 0 { → WebApp}/wwwroot/images/banner2.svg
- 0 { → WebApp}/wwwroot/images/banner3.svg
- 0 { → WebApp}/wwwroot/images/banner4.svg
- 0 { → WebApp}/wwwroot/js/site.js
- 0 { → WebApp}/wwwroot/js/site.min.js
- 0 { → WebApp}/wwwroot/lib/bootstrap/.bower.json
- 0 { → WebApp}/wwwroot/lib/bootstrap/LICENSE
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.css.map
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/css/bootstrap-theme.min.css.map
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/css/bootstrap.css
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map
- BIN { → WebApp}/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg
- BIN { → WebApp}/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
- BIN { → WebApp}/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
- BIN { → WebApp}/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/js/bootstrap.js
- 0 { → WebApp}/wwwroot/lib/bootstrap/dist/js/npm.js
- 0 { → WebApp}/wwwroot/lib/jquery-validation-unobtrusive/.bower.json
- 0 { → WebApp}/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js
- 0 { → WebApp}/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js
- 0 { → WebApp}/wwwroot/lib/jquery-validation/.bower.json
- 0 { → WebApp}/wwwroot/lib/jquery-validation/LICENSE.md
- 0 { → WebApp}/wwwroot/lib/jquery-validation/dist/additional-methods.js
- 0 { → WebApp}/wwwroot/lib/jquery-validation/dist/jquery.validate.js
- 0 { → WebApp}/wwwroot/lib/jquery/.bower.json
- 0 { → WebApp}/wwwroot/lib/jquery/LICENSE.txt
- 0 { → WebApp}/wwwroot/lib/jquery/dist/jquery.js
- 0 { → WebApp}/wwwroot/lib/jquery/dist/jquery.min.map
- +27 −13 microbank.sln
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" /> | ||
</ItemGroup> | ||
|
||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@ | ||
@page | ||
@model microbank.WebApp.Pages.IndexModel | ||
@{ | ||
ViewData["Title"] = "Micro Bank"; | ||
} | ||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,3 @@ | ||
@using microbank.WebApp | ||
@namespace microbank.WebApp.Pages | ||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
File renamed without changes.
File renamed without changes.
@@ -1,15 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.Web" DefaultTargets="Publish"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<PublishDir>$(OutDir)_PublishedWebsites\NetCoreWebApp\</PublishDir> | ||
<PublishDir>$(OutDir)..\_PublishedWebsites\NetCoreWebApp\</PublishDir> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" /> | ||
<Folder Include="wwwroot\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.1" /> | ||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" /> | ||
</ItemGroup> | ||
</Project> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Data\Data.csproj" /> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.