File: Migrations\20181219214311_AddDataProtectionKeys.Designer.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.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using EntityFrameworkCoreSample;
 
namespace EntityFrameworkCoreSample.Migrations
{
    [DbContext(typeof(DataProtectionKeyContext))]
    [Migration("20181219214311_AddDataProtectionKeys")]
    partial class AddDataProtectionKeys
    {
        protected override void BuildTargetModel(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
        }
    }
}