示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Exits EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToExits(Exit exit)
 {
     base.AddObject("Exits", exit);
 }
示例#2
0
 /// <summary>
 /// Create a new Exit object.
 /// </summary>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="destinationRoomId">Initial value of the DestinationRoomId property.</param>
 /// <param name="direction">Initial value of the Direction property.</param>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="sourceRoomId">Initial value of the SourceRoomId property.</param>
 public static Exit CreateExit(global::System.String description, global::System.Int32 destinationRoomId, global::System.Int32 direction, global::System.Int32 id, global::System.Int32 sourceRoomId)
 {
     Exit exit = new Exit();
     exit.Description = description;
     exit.DestinationRoomId = destinationRoomId;
     exit.Direction = direction;
     exit.Id = id;
     exit.SourceRoomId = sourceRoomId;
     return exit;
 }