modifica (importante) modallo dati x tags + MD% check
This commit is contained in:
@@ -30,10 +30,13 @@ namespace MP.FileData.DatabaseModels
|
||||
public long Size { get; set; } = 0;
|
||||
public string Path { get; set; } = "";
|
||||
public string MimeType { get; set; } = "";
|
||||
public bool Changed { get; set; } = false;
|
||||
public string MD5 { get; set; } = "";
|
||||
public FileState DiskState { get; set; } = FileState.New;
|
||||
public DateTime LastCheck { get; set; } = DateTime.Now.AddYears(-1);
|
||||
public byte[] FileContent { get; set; }
|
||||
|
||||
public ICollection<TagModel> Tags { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string FileStringContent
|
||||
{
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace MP.FileData.DatabaseModels
|
||||
{
|
||||
[Table("Tags")]
|
||||
public partial class TagModel
|
||||
{
|
||||
|
||||
[Key]
|
||||
public string TagId { get; set; }
|
||||
|
||||
public ICollection<FileModel> Files { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user