Esempio n. 1
0
        public void addGenreRelation(MovieDTO Movie, GenreDTO g)
        {
            MovieGenre newmg = new MovieGenre
            {
                id       = 0,
                id_Movie = Movie.Id,
                id_genre = g.Id
            };

            add <MovieGenre>(newmg, xg => xg.id == g.Id);
        }
 private void detach_MovieGenres(MovieGenre entity)
 {
     this.SendPropertyChanging();
     entity.Movie = null;
 }
 private void attach_MovieGenres(MovieGenre entity)
 {
     this.SendPropertyChanging();
     entity.Movie = this;
 }
 partial void DeleteMovieGenre(MovieGenre instance);
 partial void UpdateMovieGenre(MovieGenre instance);
 partial void InsertMovieGenre(MovieGenre instance);