コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Sessions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSessions(Session session)
 {
     base.AddObject("Sessions", session);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Session object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="trackId">Initial value of the TrackId property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="endTime">Initial value of the EndTime property.</param>
 /// <param name="sessionType">Initial value of the SessionType property.</param>
 /// <param name="roomId">Initial value of the RoomId property.</param>
 /// <param name="maxCapacity">Initial value of the MaxCapacity property.</param>
 public static Session CreateSession(global::System.Int32 id, global::System.String name, global::System.String description, global::System.Int32 trackId, global::System.DateTime startTime, global::System.DateTime endTime, global::System.String sessionType, global::System.Int32 roomId, global::System.Int32 maxCapacity)
 {
     Session session = new Session();
     session.Id = id;
     session.Name = name;
     session.Description = description;
     session.TrackId = trackId;
     session.StartTime = startTime;
     session.EndTime = endTime;
     session.SessionType = sessionType;
     session.RoomId = roomId;
     session.MaxCapacity = maxCapacity;
     return session;
 }