|
1 | | -// <auto-generated /> |
2 | | -using System; |
3 | | -using Microsoft.EntityFrameworkCore; |
4 | | -using Microsoft.EntityFrameworkCore.Infrastructure; |
5 | | -using Microsoft.EntityFrameworkCore.Metadata; |
6 | | -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
7 | | -using Webgentle.BookStore.Data; |
8 | | - |
9 | | -namespace Webgentle.BookStore.Migrations |
10 | | -{ |
11 | | - [DbContext(typeof(BookStoreContext))] |
12 | | - partial class BookStoreContextModelSnapshot : ModelSnapshot |
13 | | - { |
14 | | - protected override void BuildModel(ModelBuilder modelBuilder) |
15 | | - { |
16 | | -#pragma warning disable 612, 618 |
17 | | - modelBuilder |
18 | | - .HasAnnotation("ProductVersion", "3.1.4") |
19 | | - .HasAnnotation("Relational:MaxIdentifierLength", 128) |
20 | | - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
21 | | - |
22 | | - modelBuilder.Entity("Webgentle.BookStore.Data.Books", b => |
23 | | - { |
24 | | - b.Property<int>("Id") |
25 | | - .ValueGeneratedOnAdd() |
26 | | - .HasColumnType("int") |
27 | | - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
28 | | - |
29 | | - b.Property<string>("Author") |
30 | | - .HasColumnType("nvarchar(max)"); |
31 | | - |
32 | | - b.Property<string>("Category") |
33 | | - .HasColumnType("nvarchar(max)"); |
34 | | - |
35 | | - b.Property<DateTime?>("CreatedOn") |
36 | | - .HasColumnType("datetime2"); |
37 | | - |
38 | | - b.Property<string>("Description") |
39 | | - .HasColumnType("nvarchar(max)"); |
40 | | - |
41 | | - b.Property<int>("LanguageId") |
42 | | - .HasColumnType("int"); |
43 | | - |
44 | | - b.Property<string>("Title") |
45 | | - .HasColumnType("nvarchar(max)"); |
46 | | - |
47 | | - b.Property<int>("TotalPages") |
48 | | - .HasColumnType("int"); |
49 | | - |
50 | | - b.Property<DateTime?>("UpdatedOn") |
51 | | - .HasColumnType("datetime2"); |
52 | | - |
53 | | - b.HasKey("Id"); |
54 | | - |
55 | | - b.HasIndex("LanguageId"); |
56 | | - |
57 | | - b.ToTable("Books"); |
58 | | - }); |
59 | | - |
60 | | - modelBuilder.Entity("Webgentle.BookStore.Data.Language", b => |
61 | | - { |
62 | | - b.Property<int>("Id") |
63 | | - .ValueGeneratedOnAdd() |
64 | | - .HasColumnType("int") |
65 | | - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
66 | | - |
67 | | - b.Property<string>("Description") |
68 | | - .HasColumnType("nvarchar(max)"); |
69 | | - |
70 | | - b.Property<string>("Name") |
71 | | - .HasColumnType("nvarchar(max)"); |
72 | | - |
73 | | - b.HasKey("Id"); |
74 | | - |
75 | | - b.ToTable("Language"); |
76 | | - }); |
77 | | - |
78 | | - modelBuilder.Entity("Webgentle.BookStore.Data.Books", b => |
79 | | - { |
80 | | - b.HasOne("Webgentle.BookStore.Data.Language", "Language") |
81 | | - .WithMany("Books") |
82 | | - .HasForeignKey("LanguageId") |
83 | | - .OnDelete(DeleteBehavior.Cascade) |
84 | | - .IsRequired(); |
85 | | - }); |
86 | | -#pragma warning restore 612, 618 |
87 | | - } |
88 | | - } |
89 | | -} |
| 1 | +// <auto-generated /> |
| 2 | +using System; |
| 3 | +using Microsoft.EntityFrameworkCore; |
| 4 | +using Microsoft.EntityFrameworkCore.Infrastructure; |
| 5 | +using Microsoft.EntityFrameworkCore.Metadata; |
| 6 | +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| 7 | +using Webgentle.BookStore.Data; |
| 8 | + |
| 9 | +namespace Webgentle.BookStore.Migrations |
| 10 | +{ |
| 11 | + [DbContext(typeof(BookStoreContext))] |
| 12 | + partial class BookStoreContextModelSnapshot : ModelSnapshot |
| 13 | + { |
| 14 | + protected override void BuildModel(ModelBuilder modelBuilder) |
| 15 | + { |
| 16 | +#pragma warning disable 612, 618 |
| 17 | + modelBuilder |
| 18 | + .HasAnnotation("ProductVersion", "3.1.4") |
| 19 | + .HasAnnotation("Relational:MaxIdentifierLength", 128) |
| 20 | + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
| 21 | + |
| 22 | + modelBuilder.Entity("Webgentle.BookStore.Data.Books", b => |
| 23 | + { |
| 24 | + b.Property<int>("Id") |
| 25 | + .ValueGeneratedOnAdd() |
| 26 | + .HasColumnType("int") |
| 27 | + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
| 28 | + |
| 29 | + b.Property<string>("Author") |
| 30 | + .HasColumnType("nvarchar(max)"); |
| 31 | + |
| 32 | + b.Property<string>("Category") |
| 33 | + .HasColumnType("nvarchar(max)"); |
| 34 | + |
| 35 | + b.Property<string>("CoverImageUrl") |
| 36 | + .HasColumnType("nvarchar(max)"); |
| 37 | + |
| 38 | + b.Property<DateTime?>("CreatedOn") |
| 39 | + .HasColumnType("datetime2"); |
| 40 | + |
| 41 | + b.Property<string>("Description") |
| 42 | + .HasColumnType("nvarchar(max)"); |
| 43 | + |
| 44 | + b.Property<int>("LanguageId") |
| 45 | + .HasColumnType("int"); |
| 46 | + |
| 47 | + b.Property<string>("Title") |
| 48 | + .HasColumnType("nvarchar(max)"); |
| 49 | + |
| 50 | + b.Property<int>("TotalPages") |
| 51 | + .HasColumnType("int"); |
| 52 | + |
| 53 | + b.Property<DateTime?>("UpdatedOn") |
| 54 | + .HasColumnType("datetime2"); |
| 55 | + |
| 56 | + b.HasKey("Id"); |
| 57 | + |
| 58 | + b.HasIndex("LanguageId"); |
| 59 | + |
| 60 | + b.ToTable("Books"); |
| 61 | + }); |
| 62 | + |
| 63 | + modelBuilder.Entity("Webgentle.BookStore.Data.Language", b => |
| 64 | + { |
| 65 | + b.Property<int>("Id") |
| 66 | + .ValueGeneratedOnAdd() |
| 67 | + .HasColumnType("int") |
| 68 | + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
| 69 | + |
| 70 | + b.Property<string>("Description") |
| 71 | + .HasColumnType("nvarchar(max)"); |
| 72 | + |
| 73 | + b.Property<string>("Name") |
| 74 | + .HasColumnType("nvarchar(max)"); |
| 75 | + |
| 76 | + b.HasKey("Id"); |
| 77 | + |
| 78 | + b.ToTable("Language"); |
| 79 | + }); |
| 80 | + |
| 81 | + modelBuilder.Entity("Webgentle.BookStore.Data.Books", b => |
| 82 | + { |
| 83 | + b.HasOne("Webgentle.BookStore.Data.Language", "Language") |
| 84 | + .WithMany("Books") |
| 85 | + .HasForeignKey("LanguageId") |
| 86 | + .OnDelete(DeleteBehavior.Cascade) |
| 87 | + .IsRequired(); |
| 88 | + }); |
| 89 | +#pragma warning restore 612, 618 |
| 90 | + } |
| 91 | + } |
| 92 | +} |
0 commit comments