├── Raven.Migrations.Sample
├── Pages
│ ├── _ViewStart.cshtml
│ ├── _ViewImports.cshtml
│ ├── Privacy.cshtml
│ ├── Shared
│ │ ├── _ValidationScriptsPartial.cshtml
│ │ └── _Layout.cshtml
│ ├── Index.cshtml
│ ├── Index.cshtml.cs
│ ├── Privacy.cshtml.cs
│ ├── Error.cshtml
│ └── Error.cshtml.cs
├── wwwroot
│ ├── favicon.ico
│ ├── js
│ │ └── site.js
│ ├── lib
│ │ ├── jquery-validation-unobtrusive
│ │ │ ├── LICENSE.txt
│ │ │ ├── jquery.validate.unobtrusive.min.js
│ │ │ └── jquery.validate.unobtrusive.js
│ │ ├── jquery-validation
│ │ │ ├── LICENSE.md
│ │ │ └── dist
│ │ │ │ ├── additional-methods.min.js
│ │ │ │ └── jquery.validate.min.js
│ │ ├── bootstrap
│ │ │ ├── LICENSE
│ │ │ └── dist
│ │ │ │ └── css
│ │ │ │ ├── bootstrap-reboot.min.css
│ │ │ │ └── bootstrap-reboot.css
│ │ └── jquery
│ │ │ └── LICENSE.txt
│ └── css
│ │ └── site.css
├── Model
│ └── Shipper.cs
├── appsettings.Development.json
├── appsettings.json
├── Services
│ └── SillyService.cs
├── Raven.Migrations.Sample.csproj
├── Program.cs
├── Migrations
│ ├── 002-CompaniesHaveMultiLevelMarketing.cs
│ ├── 003-ReturnOfThePonyExpress.cs
│ ├── 001-EmployeesHaveExpendability.cs
│ └── 004-MigrationsCanRelyOnDIServices.cs
├── Properties
│ └── launchSettings.json
├── Common
│ └── RavenExtensions.cs
└── Startup.cs
├── .nuget
├── NuGet.exe
├── NuGet.Config
└── NuGet.targets
├── Raven.Migrations
├── logo-for-nuget.png
├── Directions.cs
├── IMigrationRecord.cs
├── IMigrationResolver.cs
├── IMigrationRecordLoader.cs
├── MigrationRecord.cs
├── MigrationWithAttribute.cs
├── SimpleMigrationResolver.cs
├── MigrationConventions.cs
├── MigrationAttribute.cs
├── DependencyInjectionMigrationResolver.cs
├── DefaultMigrationRecordLoader.cs
├── MigrationOptions.cs
├── RavenMigrationHelpers.cs
├── Raven.Migrations.csproj
├── ServiceCollectionExtensions.cs
├── Migration.cs
└── MigrationRunner.cs
├── Raven.Migrations.Tests
├── ConsoleLogger.cs
├── Raven.Migrations.Tests.csproj
├── MigrationTests.cs
└── RunnerTests.cs
├── LICENSE.txt
├── LICENSE.md
├── MAINTAINING.md
├── appveyor.yml
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── .github
└── workflows
│ └── main.yml
├── .gitignore
├── CHANGELOG.md
├── Raven.Migrations.sln
└── readme.md
/Raven.Migrations.Sample/Pages/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/migrating-ravens/RavenMigrations/HEAD/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/Raven.Migrations/logo-for-nuget.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/migrating-ravens/RavenMigrations/HEAD/Raven.Migrations/logo-for-nuget.png
--------------------------------------------------------------------------------
/Raven.Migrations.Sample/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/migrating-ravens/RavenMigrations/HEAD/Raven.Migrations.Sample/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/Raven.Migrations/Directions.cs:
--------------------------------------------------------------------------------
1 | namespace Raven.Migrations
2 | {
3 | public enum Directions
4 | {
5 | Up,
6 | Down
7 | }
8 | }
--------------------------------------------------------------------------------
/Raven.Migrations/IMigrationRecord.cs:
--------------------------------------------------------------------------------
1 | namespace Raven.Migrations
2 | {
3 | public interface IMigrationRecord
4 | {
5 | string? Id { get; }
6 | }
7 | }
--------------------------------------------------------------------------------
/Raven.Migrations.Sample/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using Raven.Migrations.Sample
2 | @namespace Raven.Migrations.Sample.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
Use this page to detail your site's privacy policy.
9 | -------------------------------------------------------------------------------- /Raven.Migrations.Sample/Pages/Shared/_ValidationScriptsPartial.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Raven.Migrations.Sample/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Raven.Migrations.Sample/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /Raven.Migrations.Sample/wwwroot/js/site.js: -------------------------------------------------------------------------------- 1 | // Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification 2 | // for details on configuring this project to bundle and minify static web assets. 3 | 4 | // Write your Javascript code. 5 | -------------------------------------------------------------------------------- /Raven.Migrations/IMigrationRecordLoader.cs: -------------------------------------------------------------------------------- 1 | namespace Raven.Migrations 2 | { 3 | public interface IMigrationRecordStore 4 | { 5 | IMigrationRecord Load(string migrationId); 6 | void Store(string migrationId); 7 | void Delete(IMigrationRecord record); 8 | } 9 | } -------------------------------------------------------------------------------- /Raven.Migrations/MigrationRecord.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Raven.Migrations 4 | { 5 | public class MigrationRecord : IMigrationRecord 6 | { 7 | public string? Id { get; set; } 8 | public DateTimeOffset RunOn { get; set; } = DateTimeOffset.UtcNow; 9 | } 10 | } -------------------------------------------------------------------------------- /Raven.Migrations/MigrationWithAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Raven.Migrations 4 | { 5 | internal class MigrationWithAttribute 6 | { 7 | public FuncLearn about building Web apps with ASP.NET Core.
10 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /Raven.Migrations.Sample/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using Microsoft.AspNetCore.Mvc.RazorPages; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace Raven.Migrations.Sample.Pages 11 | { 12 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] 13 | public class ErrorModel : PageModel 14 | { 15 | public string RequestId { get; set; } 16 | 17 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); 18 | 19 | private readonly ILogger
70 | /// // Patch orders/123-A to have a .Freight of 3.14
71 | /// PatchDocument<Order, double>("orders/123-A", o => o.Freight, 3.14);
72 | ///
73 | ///
95 | /// // Patch all Orders to increase their Freight
96 | /// PatchCollection("from Orders update { this.Freight += 10 }");
97 | ///
98 | ///
118 |
133 |
134 |