Esempio n. 1
0
        static void Main(string[] args)
        {
            var dbContext = new VidzyDbContext();

            dbContext.AddVideo("1123", DateTime.Now, 1, Classification.Platinum);
            dbContext.AddVideo("12323", DateTime.Now, 2, Classification.Gold);
            dbContext.AddVideo("123", DateTime.Now, 4, Classification.Silver);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var DbContext = new VidzyDbContext();

            DbContext.AddVideo("Zurassic World", new DateTime(2016, 9, 23), 1, 1);
            DbContext.AddVideo("The Lord of The Rings", new DateTime(2001, 6, 12), 4, 2);
            DbContext.AddVideo("The Hateful Eight", new DateTime(2007, 8, 9), 4, 3);
            DbContext.SaveChanges();
        }
 private static void AddMovie()
 {
     using (var dbContext = new VidzyDbContext())
     {
         dbContext.AddVideo("Die Hard 3", new DateTime(1990, 01, 01), "Action", Classification.Gold);
         dbContext.AddVideo("Harry Potter", new DateTime(1990, 01, 01), "Action", Classification.Platinum);
         dbContext.AddVideo("The Avengers: End Game", new DateTime(2002, 01, 01), "Action", Classification.Silver);
     }
 }
Esempio n. 4
0
        static void Main(string[] args)
        {
            var dbContext = new VidzyDbContext();

            var genres = dbContext.Genres.ToList();

            var video = new Video
            {
                Name        = "Teste 2",
                ReleaseDate = DateTime.Parse("12/23/2015", CultureInfo.InvariantCulture),
                Genre       = new Genre()
                {
                    Name = "Comedy"
                },
                Classification = Classification.Gold
            };

            var result = dbContext.AddVideo(video.Name, video.ReleaseDate, video.Genre.Name, (byte)video.Classification);
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            VidzyDbContext context = new VidzyDbContext();

            context.AddVideo("film_47", DateTime.Now, "Horror", (byte)Classification.Platinum);
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            var vidzyContext = new VidzyDbContext();

            vidzyContext.AddVideo("Half Baked", new DateTime(1998, 1, 1), "Comedy", (byte)Classification.Gold);
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            var dbContext = new VidzyDbContext();

            dbContext.AddVideo("Video 5", DateTime.Now, "Comedy", Classification.Gold);
        }