update datamodel file con indici
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
@@ -15,6 +16,7 @@ namespace MP.FileData.DatabaseModels
|
||||
/// Tabella archivio dei File Programma
|
||||
/// </summary>
|
||||
[Table("Files")]
|
||||
[Index(nameof(IdxMacchina), nameof(Active), nameof(DiskStatus))]
|
||||
public partial class FileModel
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace MP.FileData.Migrations
|
||||
{
|
||||
[DbContext(typeof(MoonPro_ProgContext))]
|
||||
[Migration("20210908125127_InitDb")]
|
||||
[Migration("20210913153816_InitDb")]
|
||||
partial class InitDb
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -82,7 +82,7 @@ namespace MP.FileData.Migrations
|
||||
|
||||
b.HasKey("FileId");
|
||||
|
||||
b.HasIndex("IdxMacchina");
|
||||
b.HasIndex("IdxMacchina", "Active", "DiskStatus");
|
||||
|
||||
b.ToTable("Files");
|
||||
});
|
||||
+2
-2
@@ -101,9 +101,9 @@ namespace MP.FileData.Migrations
|
||||
column: "TagsTagId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Files_IdxMacchina",
|
||||
name: "IX_Files_IdxMacchina_Active_DiskStatus",
|
||||
table: "Files",
|
||||
column: "IdxMacchina");
|
||||
columns: new[] { "IdxMacchina", "Active", "DiskStatus" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
@@ -80,7 +80,7 @@ namespace MP.FileData.Migrations
|
||||
|
||||
b.HasKey("FileId");
|
||||
|
||||
b.HasIndex("IdxMacchina");
|
||||
b.HasIndex("IdxMacchina", "Active", "DiskStatus");
|
||||
|
||||
b.ToTable("Files");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user