//
using System;
using MP.TaskMan;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace MP.TaskMan.Migrations
{
[DbContext(typeof(TaskContext))]
partial class TaskContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.UseCollation("SQL_Latin1_General_CP1_CI_AS")
.HasAnnotation("ProductVersion", "6.0.33")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("MP.TaskMan.Models.TaskExecModel", b =>
{
b.Property("TaskExecId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("TaskExecId"), 1L, 1);
b.Property("DtEnd")
.HasColumnType("datetime2");
b.Property("DtStart")
.HasColumnType("datetime2");
b.Property("IsError")
.HasColumnType("bit");
b.Property("Result")
.HasColumnType("nvarchar(max)");
b.Property("TaskId")
.HasColumnType("int");
b.HasKey("TaskExecId");
b.HasIndex("TaskId");
b.ToTable("TaskExec");
});
modelBuilder.Entity("MP.TaskMan.Models.TaskListModel", b =>
{
b.Property("TaskId")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("TaskId"), 1L, 1);
b.Property("Args")
.HasColumnType("nvarchar(max)");
b.Property("Cad")
.HasColumnType("int");
b.Property("Command")
.HasColumnType("nvarchar(max)");
b.Property("Descript")
.HasColumnType("nvarchar(max)");
b.Property("DtLastExec")
.HasColumnType("datetime2");
b.Property("DtNextExec")
.HasColumnType("datetime2");
b.Property("Enabled")
.HasColumnType("bit");
b.Property("Freq")
.HasColumnType("int");
b.Property("LastDuration")
.HasColumnType("float");
b.Property("LastIsError")
.HasColumnType("bit");
b.Property("LastResult")
.HasColumnType("nvarchar(max)");
b.Property("Name")
.HasColumnType("nvarchar(max)");
b.Property("Ordinal")
.HasColumnType("int");
b.Property("TType")
.HasColumnType("int");
b.HasKey("TaskId");
b.ToTable("TaskList");
});
modelBuilder.Entity("MP.TaskMan.Models.TaskExecModel", b =>
{
b.HasOne("MP.TaskMan.Models.TaskListModel", "TaskListNav")
.WithMany()
.HasForeignKey("TaskId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("TaskListNav");
});
#pragma warning restore 612, 618
}
}
}