Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Songs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSongs(Song song)
 {
     base.AddObject("Songs", song);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Song object.
 /// </summary>
 /// <param name="songID">Initial value of the SongID property.</param>
 /// <param name="modeID">Initial value of the ModeID property.</param>
 /// <param name="songInfoID">Initial value of the SongInfoID property.</param>
 /// <param name="totalNotes">Initial value of the TotalNotes property.</param>
 /// <param name="difficulty">Initial value of the Difficulty property.</param>
 public static Song CreateSong(global::System.Int32 songID, global::System.Int32 modeID, global::System.Int32 songInfoID, global::System.Int32 totalNotes, global::System.Int32 difficulty)
 {
     Song song = new Song();
     song.SongID = songID;
     song.ModeID = modeID;
     song.SongInfoID = songInfoID;
     song.TotalNotes = totalNotes;
     song.Difficulty = difficulty;
     return song;
 }