using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Web;

namespace Photo_Shared.Models
{
    public class Photo
    {
        [Key]
        public int PhotoID { get; set; }
        public string Title { get; set; }
        public byte[] PhotoFile { get; set; }
        public string Description { get; set; }

        public DateTime CreatedDate { get; set; }

        public string Owner { get; set; }
        public virtual ICollection<Comment> Comments { get; set; }

        [NotMapped, Required]
        public HttpPostedFileBase image { get; set; }

    }
}