Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using MyMDB.Data;
  4.  
  5. namespace MyMDB.Models
  6. {
  7. public class Movie : IEntity
  8. {
  9. public int Id { get; set; }
  10.  
  11. [Required]
  12. [StringLength(60, MinimumLength = 3)]
  13. public string Title { get; set; }
  14.  
  15. [Required]
  16. [StringLength(30)]
  17. [RegularExpression(@"^[A-Z]+[a-zA-Z""'\s-]*$")]
  18. public string Genre { get; set; }
  19.  
  20. [DataType(DataType.Date)]
  21. public DateTime ReleaseDate { get; set; }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement