|
| 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 WebApi.Helpers; |
| 8 | + |
| 9 | +namespace WebApi.Migrations.SqlServerMigrations |
| 10 | +{ |
| 11 | + [DbContext(typeof(DataContext))] |
| 12 | + partial class DataContextModelSnapshot : ModelSnapshot |
| 13 | + { |
| 14 | + protected override void BuildModel(ModelBuilder modelBuilder) |
| 15 | + { |
| 16 | +#pragma warning disable 612, 618 |
| 17 | + modelBuilder |
| 18 | + .HasAnnotation("ProductVersion", "3.1.0") |
| 19 | + .HasAnnotation("Relational:MaxIdentifierLength", 128) |
| 20 | + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
| 21 | + |
| 22 | + modelBuilder.Entity("WebApi.Entities.User", b => |
| 23 | + { |
| 24 | + b.Property<int>("Id") |
| 25 | + .ValueGeneratedOnAdd() |
| 26 | + .HasColumnType("int") |
| 27 | + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
| 28 | + |
| 29 | + b.Property<string>("FirstName") |
| 30 | + .HasColumnType("nvarchar(max)"); |
| 31 | + |
| 32 | + b.Property<string>("LastName") |
| 33 | + .HasColumnType("nvarchar(max)"); |
| 34 | + |
| 35 | + b.Property<byte[]>("PasswordHash") |
| 36 | + .HasColumnType("varbinary(max)"); |
| 37 | + |
| 38 | + b.Property<byte[]>("PasswordSalt") |
| 39 | + .HasColumnType("varbinary(max)"); |
| 40 | + |
| 41 | + b.Property<string>("Username") |
| 42 | + .HasColumnType("nvarchar(max)"); |
| 43 | + |
| 44 | + b.HasKey("Id"); |
| 45 | + |
| 46 | + b.ToTable("Users"); |
| 47 | + }); |
| 48 | +#pragma warning restore 612, 618 |
| 49 | + } |
| 50 | + } |
| 51 | +} |
0 commit comments