/// <summary> /// Create a new Music_Artist object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the Name property.</param> public static Music_Artist CreateMusic_Artist(global::System.Guid id, global::System.String name) { Music_Artist music_Artist = new Music_Artist(); music_Artist.id = id; music_Artist.Name = name; return(music_Artist); }
public void AddArtist(Guid id, string description) { var ent = new MediaCatalogueEntities(); var artist = new Music_Artist(); artist.id = id; artist.Name = description; ent.AddToMusic_Artist(artist); ent.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the Music_Artist EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMusic_Artist(Music_Artist music_Artist) { base.AddObject("Music_Artist", music_Artist); }