Advertisement
fight90

Model in DataBase

Jun 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public class Picture
  2. {
  3.  
  4. public string PictureId { get; set; }
  5.  
  6. [Required]
  7. [MaxLength(10 * 1024 * 1024)]
  8. public byte[] PictureByteArray { get; set; } = new byte[(10 * 1024 * 1024)]; // Max size 10MB
  9.  
  10. [StringLength(100,ErrorMessage = DataConstants.PictureDescriptionMaxLengthErrorMessage)]
  11. public string Description { get; set; }
  12.  
  13. public bool isProfilePicture { get; set; } = false;
  14.  
  15. public string UserId {get;set;}
  16.  
  17. public User User { get; set; }
  18.  
  19.  
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement