File: Migrations\DataProtectionKeyContextModelSnapshot.cs
Web Access
Project: src\src\DataProtection\samples\EntityFrameworkCoreSample\EntityFrameworkCoreSample.csproj (EntityFrameworkCoreSample)
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using EntityFrameworkCoreSample;
 
namespace EntityFrameworkCoreSample.Migrations
{
    [DbContext(typeof(DataProtectionKeyContext))]
    partial class DataProtectionKeyContextModelSnapshot : ModelSnapshot
    {
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "2.2.0")
                .HasAnnotation("Relational:MaxIdentifierLength", 128)
                .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
 
            modelBuilder.Entity("Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.DataProtectionKey", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
 
                    b.Property<string>("FriendlyName");
 
                    b.Property<string>("Xml");
 
                    b.HasKey("Id");
 
                    b.ToTable("DataProtectionKeys");
                });
#pragma warning restore 612, 618
        }
    }
}