Image preview and images for items (wip)
This commit is contained in:
@@ -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; }
|
||||
}
|
Reference in New Issue
Block a user