| | 1 | | // <auto-generated /> |
| | 2 | | using Microsoft.EntityFrameworkCore; |
| | 3 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 4 | | using Microsoft.EntityFrameworkCore.Metadata; |
| | 5 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 7 | | using NLightning.Models; |
| | 8 | |
|
| | 9 | | #nullable disable |
| | 10 | |
|
| | 11 | | namespace NLightning.Models.SqlServer.Migrations |
| | 12 | | { |
| | 13 | | [DbContext(typeof(NLightningContext))] |
| | 14 | | [Migration("20240322171304_Init")] |
| | 15 | | partial class Init |
| | 16 | | { |
| | 17 | | /// <inheritdoc /> |
| | 18 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 19 | | { |
| | 20 | | #pragma warning disable 612, 618 |
| 0 | 21 | | modelBuilder |
| 0 | 22 | | .HasAnnotation("ProductVersion", "8.0.3") |
| 0 | 23 | | .HasAnnotation("Relational:MaxIdentifierLength", 128); |
| | 24 | |
|
| 0 | 25 | | SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); |
| | 26 | |
|
| 0 | 27 | | modelBuilder.Entity("NLightning.Models.NLightningContext+Node", b => |
| 0 | 28 | | { |
| 0 | 29 | | b.Property<long>("Id") |
| 0 | 30 | | .ValueGeneratedOnAdd() |
| 0 | 31 | | .HasColumnType("bigint"); |
| 0 | 32 | |
|
| 0 | 33 | | SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id")); |
| 0 | 34 | |
|
| 0 | 35 | | b.HasKey("Id"); |
| 0 | 36 | |
|
| 0 | 37 | | b.ToTable("Nodes"); |
| 0 | 38 | | }); |
| | 39 | | #pragma warning restore 612, 618 |
| 0 | 40 | | } |
| | 41 | | } |
| | 42 | | } |