Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using QuotesDomain.CustomValidators;
- namespace QuotesDomain.Entities
- {
- public class Author
- {
- [Key]
- public int Id { get; set; }
- [Required, MaxLength(30), MinLength(2)]
- public string FirstName { get; set; }
- [Required, MaxLength(30), MinLength(2)]
- public string LastName { get; set; }
- [Required]
- public string UrlFriendlyName { get; set; }
- [Required, ValidateDODDOB]
- public string DOB { get; set; }
- [ValidateDODDOB]
- public string DOD { get; set; }
- [Required, MaxLength(60), MinLength(2)]
- public string Occupation { get; set; }
- [Required, MaxLength(170), MinLength(5)]
- public string WikiLink { get; set; }
- public byte[] Image { get; set; }
- [Required]
- public bool isApproved { get; set; }
- [Required]
- public DateTime CreatedOn { get; set; }
- public virtual ICollection<Quote> Quotes { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement