deadballzone/EntityFrameworkCore.Console(master)$ dotnet ef migrations add InitialMigration --startup-project ./ --project ../EntityFrameworkCore.Data
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using EntityFrameworkCore.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace EntityFrameworkCore.Data.Migrations
|
|
{
|
|
[DbContext(typeof(DeadBallZoneLeagueDbContext))]
|
|
partial class DeadBallZoneLeagueDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.3");
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Coach", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Coaches");
|
|
});
|
|
|
|
modelBuilder.Entity("EntityFrameworkCore.Domain.Team", b =>
|
|
{
|
|
b.Property<int>("TeamId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("TeamId");
|
|
|
|
b.ToTable("Teams");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|