Exemplo n.º 1
0
        /// <summary>
        /// Create a new Music_Track object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        public static Music_Track CreateMusic_Track(global::System.Guid id)
        {
            Music_Track music_Track = new Music_Track();

            music_Track.id = id;
            return(music_Track);
        }
Exemplo n.º 2
0
        public void AddVideoClip(MusicVideoClip clip)
        {
            var ent = new MediaCatalogueEntities();

            var vc = new Music_Track();

            vc.id       = clip.id;
            vc.Duration = clip.Duration;

            // ToDo: Find/Add the artist and Genre entities

            ent.AddToMusic_Track(vc);       // This will change when Genre and Artist are linked to this Music_Track (no need to Add the newly created entity).
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Music_Track EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMusic_Track(Music_Track music_Track)
 {
     base.AddObject("Music_Track", music_Track);
 }