This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/Models/Carousel.cs
surtur e5b871c275
All checks were successful
continuous-integration/drone/push Build is passing
chore: adding postgre support [wip - batch 1]
2020-12-06 12:23:51 +01:00

27 lines
623 B
C#

using Microsoft.AspNetCore.Http;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace pwt_0x01_ng.Models
{
[Table("Carousel")]
public class Carousel
{
[Key]
[Required]
public int id { get; set; }
[Required]
public string DataTarget { get; set; }
[NotMapped]
public IFormFile Image { get; set; }
[Required]
[StringLength(255)]
public string ImageSrc { get; set; }
[Required]
[StringLength(50)]
public string ImageAlt { get; set; }
[Required]
public string CarouselContent { get; set; }
}
}