This paste brought to you by Pastebin. View Raw

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7.  
  8. namespace RazorPagesMovie.Models
  9. {
  10.     public class Movie
  11.     {
  12.         public int ID { get; set; }
  13.         public string Title { get; set; }
  14.  
  15.         [Display(Name = "Release Date" )]
  16.         [DataType(DataType.Date)]
  17.         public DateTime ReleaseDate { get; set; }
  18.         public string Genre { get; set; }
  19.  
  20.         [Column(TypeName = "decimal(18, 2)")]
  21.         public decimal Price { get; set; }
  22.     }
  23. }