/// <summary> /// Deprecated Method for adding a new object to the States EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToStates(State state) { base.AddObject("States", state); }
/// <summary> /// Create a new State object. /// </summary> /// <param name="currentRoom">Initial value of the CurrentRoom property.</param> /// <param name="id">Initial value of the Id property.</param> /// <param name="physicalMonitor">Initial value of the PhysicalMonitor property.</param> /// <param name="stunMonitor">Initial value of the StunMonitor property.</param> public static State CreateState(global::System.Int32 currentRoom, global::System.Int32 id, global::System.Int32 physicalMonitor, global::System.Int32 stunMonitor) { State state = new State(); state.CurrentRoom = currentRoom; state.Id = id; state.PhysicalMonitor = physicalMonitor; state.StunMonitor = stunMonitor; return state; }