Image preview and images for items (wip)

This commit is contained in:
Victor Turgeon
2022-10-31 12:11:18 -07:00
parent 4558617f30
commit b939d94dc4
4 changed files with 78 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
using Microsoft.Data.SqlClient.Server;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GrossesMitainesAPI.Models;
@@ -31,4 +32,7 @@ public class Product {
public DateTime? LastSale { get; set; }
public DateTime? LastHit { get; set; }
public string? ImageName { get; set; } // Base pour sortir les images ({ImageName}.jpg , {ImageName}_thumbnail.jpg, etc...)
[NotMapped]
public IFormFile? ImageFile { get; set; } 
}