/// <summary> /// Create a new Album object. /// </summary> /// <param name="albumId">Initial value of the AlbumId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="privacy">Initial value of the Privacy property.</param> public static Album CreateAlbum(global::System.Int16 albumId, global::System.Guid userId, global::System.String name, global::System.Int16 privacy) { Album album = new Album(); album.AlbumId = albumId; album.UserId = userId; album.Name = name; album.Privacy = privacy; return album; }
/// <summary> /// Deprecated Method for adding a new object to the Albums EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAlbums(Album album) { base.AddObject("Albums", album); }