Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace RazorMovie.Models
- {
- public class Movie
- {
- public int ID { get; set; }
- public string? Title { get; set; }
- [Display(Name = "Release Date")]
- [DataType(DataType.Date)]
- public DateTime ReleaseDate { get; set; }
- public string? Genre { get; set; }
- [Column(TypeName = "decimal(18, 2)")]
- public decimal Price { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment