├── ASPNETCore.EntityFramework.RepositoryPattern ├── wwwroot │ ├── js │ │ ├── site.min.js │ │ └── site.js │ ├── favicon.ico │ ├── lib │ │ ├── bootstrap │ │ │ ├── dist │ │ │ │ ├── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── js │ │ │ │ │ └── npm.js │ │ │ │ └── css │ │ │ │ │ ├── bootstrap-theme.min.css │ │ │ │ │ ├── bootstrap-theme.min.css.map │ │ │ │ │ └── bootstrap-theme.css │ │ │ ├── .bower.json │ │ │ └── LICENSE │ │ ├── jquery │ │ │ ├── .bower.json │ │ │ └── LICENSE.txt │ │ ├── jquery-validation │ │ │ ├── .bower.json │ │ │ ├── LICENSE.md │ │ │ └── dist │ │ │ │ ├── additional-methods.min.js │ │ │ │ └── jquery.validate.min.js │ │ └── jquery-validation-unobtrusive │ │ │ ├── .bower.json │ │ │ ├── jquery.validate.unobtrusive.min.js │ │ │ └── jquery.validate.unobtrusive.js │ ├── css │ │ ├── site.min.css │ │ └── site.css │ └── images │ │ ├── banner2.svg │ │ ├── banner1.svg │ │ ├── banner3.svg │ │ └── banner4.svg ├── .bowerrc ├── Views │ ├── _ViewStart.cshtml │ ├── Home │ │ ├── Error.cshtml │ │ ├── Index.cshtml │ │ └── Form.cshtml │ ├── _ViewImports.cshtml │ └── Shared │ │ ├── Error.cshtml │ │ ├── _ValidationScriptsPartial.cshtml │ │ └── _Layout.cshtml ├── appsettings.Development.json ├── bower.json ├── appsettings.json ├── ViewModels │ ├── ErrorViewModel.cs │ ├── IndexViewModel.cs │ └── FormViewModel.cs ├── Core │ ├── IUnitOfWorkRepository.cs │ ├── Models │ │ └── Employee.cs │ └── IEmployeeRepository.cs ├── Presistance │ ├── ApplicationDbContext.cs │ ├── UnitOfWorkRepository.cs │ └── EmployeeRepository.cs ├── bundleconfig.json ├── ASPNETCore.EntityFramework.RepositoryPattern.csproj ├── Properties │ └── launchSettings.json ├── Program.cs ├── ASPNETCore.EntityFramework.RepositoryPattern.csproj.user ├── Migrations │ ├── 20171114064001_AddEmployeeTable.cs │ ├── ApplicationDbContextModelSnapshot.cs │ └── 20171114064001_AddEmployeeTable.Designer.cs ├── Startup.cs └── Controllers │ └── HomeController.cs ├── ASPNETCore.EntityFramework.RepositoryPattern.Tests ├── .gitignore ├── ASPNETCore.EntityFramework.RepositoryPattern.Tests.csproj └── HomeControllerTests.cs ├── .gitignore ├── README.md └── ASPNETCore.EntityFramework.RepositoryPattern.sln /ASPNETCore.EntityFramework.RepositoryPattern/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ASPNETCore.EntityFramework.RepositoryPattern.Tests/.gitignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | obj/* -------------------------------------------------------------------------------- /ASPNETCore.EntityFramework.RepositoryPattern/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "wwwroot/lib" 3 | } 4 | -------------------------------------------------------------------------------- /ASPNETCore.EntityFramework.RepositoryPattern/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Write your JavaScript code. 2 | -------------------------------------------------------------------------------- /ASPNETCore.EntityFramework.RepositoryPattern/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vs/* 2 | ASPNETCore.EntityFramework.RepositoryPattern/.vscode/* 3 | ASPNETCore.EntityFramework.RepositoryPattern/bin/* 4 | ASPNETCore.EntityFramework.RepositoryPattern/obj/* -------------------------------------------------------------------------------- /ASPNETCore.EntityFramework.RepositoryPattern/Views/Home/Error.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewData["Title"] = "Error"; 4 | Layout = "~/Views/Shared/_Layout.cshtml"; 5 | } 6 | 7 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 22 |
23 | -------------------------------------------------------------------------------- /ASPNETCore.EntityFramework.RepositoryPattern/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer