コード例 #1
0
ファイル: ModelDB.Designer.cs プロジェクト: A-59/TowerDefence
 /// <summary>
 /// Deprecated Method for adding a new object to the Levels EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToLevels(Level level)
 {
     base.AddObject("Levels", level);
 }
コード例 #2
0
ファイル: ModelDB.Designer.cs プロジェクト: A-59/TowerDefence
 /// <summary>
 /// Create a new Level object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="mapId">Initial value of the MapId property.</param>
 /// <param name="waves">Initial value of the Waves property.</param>
 /// <param name="waveId">Initial value of the WaveId property.</param>
 public static Level CreateLevel(global::System.Int32 id, global::System.Int32 mapId, global::System.Int32 waves, global::System.Int32 waveId)
 {
     Level level = new Level();
     level.Id = id;
     level.MapId = mapId;
     level.Waves = waves;
     level.WaveId = waveId;
     return level;
 }