Review AppUrl base x siti CORE
Divisione aree Redis tra app (x TaskMan in particolare) Test apertura app
This commit is contained in:
@@ -0,0 +1,126 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using MP.TaskMan;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace MP.TaskMan.Migrations
|
||||
{
|
||||
[DbContext(typeof(TaskContext))]
|
||||
[Migration("20241028131648_AddTaskStatus")]
|
||||
partial class AddTaskStatus
|
||||
{
|
||||
protected override void BuildTargetModel(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<int>("TaskExecId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TaskExecId"), 1L, 1);
|
||||
|
||||
b.Property<DateTime>("DtEnd")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime>("DtStart")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("IsError")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("Result")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("TaskId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("TaskExecId");
|
||||
|
||||
b.HasIndex("TaskId");
|
||||
|
||||
b.ToTable("TaskExec");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("MP.TaskMan.Models.TaskListModel", b =>
|
||||
{
|
||||
b.Property<int>("TaskId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TaskId"), 1L, 1);
|
||||
|
||||
b.Property<string>("Args")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Cad")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Command")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Descript")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("DtLastExec")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<DateTime>("DtNextExec")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<int>("Freq")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<double>("LastDuration")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<bool>("LastIsError")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("LastResult")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Ordinal")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace MP.TaskMan.Migrations
|
||||
{
|
||||
public partial class AddTaskStatus : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Enabled",
|
||||
table: "TaskList",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Enabled",
|
||||
table: "TaskList");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,9 @@ namespace MP.TaskMan.Migrations
|
||||
b.Property<DateTime>("DtNextExec")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<int>("Freq")
|
||||
.HasColumnType("int");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user