roadie/RoadieLibrary/Data/Image.cs

30 lines
741 B
C#
Raw Normal View History

2018-11-02 21:11:11 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("image")]
public partial class Image : EntityBase
{
[Column("artistId")]
public int? ArtistId { get; set; }
2018-11-02 22:20:36 +00:00
[Column("image", TypeName = "mediumblob")]
2018-11-02 21:11:11 +00:00
public byte[] Bytes { get; set; }
[Column("caption")]
[MaxLength(100)]
public string Caption { get; set; }
[Column("releaseId")]
public int? ReleaseId { get; set; }
[Column("signature")]
[MaxLength(50)]
public string Signature { get; set; }
[Column("url")]
[MaxLength(500)]
public string Url { get; set; }
}
}