62 lines
2.0 KiB
C#
62 lines
2.0 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using RazorPagesMovie.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace RazorPagesMovie.Migrations
|
|
{
|
|
[DbContext(typeof(RazorPagesMovieContext))]
|
|
partial class RazorPagesMovieContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.28")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("RazorPagesMovie.Models.Movie", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Genre")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("decimal(18, 2)");
|
|
|
|
b.Property<string>("Rating")
|
|
.IsRequired()
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<DateTime>("ReleaseDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(60)
|
|
.HasColumnType("nvarchar(60)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Movie");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|