File: Migrations\MyDb1ContextModelSnapshot.cs
Web Access
Project: src\playground\DatabaseMigration\DatabaseMigration.ApiModel\DatabaseMigration.ApiModel.csproj (DatabaseMigration.ApiModel)
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 
#nullable disable
 
namespace DatabaseMigration.ApiModel.Migrations
{
    [DbContext(typeof(MyDb1Context))]
    partial class MyDb1ContextModelSnapshot : ModelSnapshot
    {
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "8.0.2")
                .HasAnnotation("Relational:MaxIdentifierLength", 128);
 
            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
 
            modelBuilder.Entity("Entry", b =>
                {
                    b.Property<Guid>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("uniqueidentifier");
 
                    b.HasKey("Id");
 
                    b.ToTable("Entries");
                });
#pragma warning restore 612, 618
        }
    }
}