-
Notifications
You must be signed in to change notification settings - Fork 982
Migrate playground/SqlServerEndToEnd to EF Hosting integration and fix found issues #16966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| using Microsoft.EntityFrameworkCore.Migrations; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace SqlServerEndToEnd.Common.Db1; | ||
|
|
||
| /// <inheritdoc /> | ||
| public partial class Initial : Migration | ||
| { | ||
| /// <inheritdoc /> | ||
| protected override void Up(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.CreateTable( | ||
| name: "Entries", | ||
| columns: table => new | ||
| { | ||
| Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false) | ||
| }, | ||
| constraints: table => | ||
| { | ||
| table.PrimaryKey("PK_Entries", x => x.Id); | ||
| }); | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override void Down(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.DropTable( | ||
| name: "Entries"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // <auto-generated /> | ||
| using System; | ||
| using Microsoft.EntityFrameworkCore; | ||
| using Microsoft.EntityFrameworkCore.Infrastructure; | ||
| using Microsoft.EntityFrameworkCore.Metadata; | ||
| using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
| using SqlServerEndToEnd.Common; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace SqlServerEndToEnd.Common.Db1 | ||
| { | ||
| [DbContext(typeof(MyDb1Context))] | ||
| partial class MyDb1ContextModelSnapshot : ModelSnapshot | ||
| { | ||
| protected override void BuildModel(ModelBuilder modelBuilder) | ||
| { | ||
| #pragma warning disable 612, 618 | ||
| modelBuilder | ||
| .HasAnnotation("ProductVersion", "8.0.26") | ||
| .HasAnnotation("Relational:MaxIdentifierLength", 128); | ||
|
|
||
| SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); | ||
|
|
||
| modelBuilder.Entity("SqlServerEndToEnd.Common.Entry", b => | ||
| { | ||
| b.Property<Guid>("Id") | ||
| .ValueGeneratedOnAdd() | ||
| .HasColumnType("uniqueidentifier"); | ||
|
|
||
| b.HasKey("Id"); | ||
|
|
||
| b.ToTable("Entries"); | ||
| }); | ||
| #pragma warning restore 612, 618 | ||
| } | ||
| } | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| using Microsoft.EntityFrameworkCore.Migrations; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace SqlServerEndToEnd.Common.Db2; | ||
|
|
||
| /// <inheritdoc /> | ||
| public partial class Initial : Migration | ||
| { | ||
| /// <inheritdoc /> | ||
| protected override void Up(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.CreateTable( | ||
| name: "Entries", | ||
| columns: table => new | ||
| { | ||
| Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false) | ||
| }, | ||
| constraints: table => | ||
| { | ||
| table.PrimaryKey("PK_Entries", x => x.Id); | ||
| }); | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override void Down(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.DropTable( | ||
| name: "Entries"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // <auto-generated /> | ||
| using System; | ||
| using Microsoft.EntityFrameworkCore; | ||
| using Microsoft.EntityFrameworkCore.Infrastructure; | ||
| using Microsoft.EntityFrameworkCore.Metadata; | ||
| using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
| using SqlServerEndToEnd.Common; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace SqlServerEndToEnd.Common.Db2 | ||
| { | ||
| [DbContext(typeof(MyDb2Context))] | ||
| partial class MyDb2ContextModelSnapshot : ModelSnapshot | ||
| { | ||
| protected override void BuildModel(ModelBuilder modelBuilder) | ||
| { | ||
| #pragma warning disable 612, 618 | ||
| modelBuilder | ||
| .HasAnnotation("ProductVersion", "8.0.26") | ||
| .HasAnnotation("Relational:MaxIdentifierLength", 128); | ||
|
|
||
| SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); | ||
|
|
||
| modelBuilder.Entity("SqlServerEndToEnd.Common.Entry", b => | ||
| { | ||
| b.Property<Guid>("Id") | ||
| .ValueGeneratedOnAdd() | ||
| .HasColumnType("uniqueidentifier"); | ||
|
|
||
| b.HasKey("Id"); | ||
|
|
||
| b.ToTable("Entries"); | ||
| }); | ||
| #pragma warning restore 612, 618 | ||
| } | ||
| } | ||
| } |
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.