Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Picture
- {
- public string PictureId { get; set; }
- [Required]
- [MaxLength(10 * 1024 * 1024)]
- public byte[] PictureByteArray { get; set; } = new byte[(10 * 1024 * 1024)]; // Max size 10MB
- [StringLength(100,ErrorMessage = DataConstants.PictureDescriptionMaxLengthErrorMessage)]
- public string Description { get; set; }
- public bool isProfilePicture { get; set; } = false;
- public string UserId {get;set;}
- public User User { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement