AspNetCore.Docs.Samples/fundamentals/minimal-apis/samples/json-apis/Migrations/AppDbContextModelSnapshot.cs

50 lines
1.5 KiB
C#

// <auto-generated />
using System;
using JSON.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace JSON.Migrations
{
[DbContext(typeof(AppDbContext))]
partial class AppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0-preview.1.23111.4")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("JSON.Models.WeatherForecast", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<string>("Summary")
.HasColumnType("nvarchar(max)");
b.Property<double>("TemperatureC")
.HasColumnType("float");
b.HasKey("Id");
b.ToTable("Forecasts");
});
#pragma warning restore 612, 618
}
}
}