コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Films EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFilms(Film film)
 {
     base.AddObject("Films", film);
 }
コード例 #2
0
 public void AddFilm(Film film)
 {
     movieEntities.Films.AddObject(film);
 }
コード例 #3
0
 /// <summary>
 /// Create a new Film object.
 /// </summary>
 /// <param name="filmId">Initial value of the FilmId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Film CreateFilm(global::System.Int32 filmId, global::System.String name)
 {
     Film film = new Film();
     film.FilmId = filmId;
     film.Name = name;
     return film;
 }