/// <summary> /// Create a new TrainingSession object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> /// <param name="maximumAttendees">Initial value of the MaximumAttendees property.</param> /// <param name="trainingSession_Employee">Initial value of the TrainingSession_Employee property.</param> /// <param name="trainingSession_Course">Initial value of the TrainingSession_Course property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static TrainingSession CreateTrainingSession(global::System.Int32 id, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Int32 maximumAttendees, global::System.Int32 trainingSession_Employee, global::System.Int32 trainingSession_Course, global::System.Byte[] rowVersion) { TrainingSession trainingSession = new TrainingSession(); trainingSession.Id = id; trainingSession.StartDate = startDate; trainingSession.EndDate = endDate; trainingSession.MaximumAttendees = maximumAttendees; trainingSession.TrainingSession_Employee = trainingSession_Employee; trainingSession.TrainingSession_Course = trainingSession_Course; trainingSession.RowVersion = rowVersion; return trainingSession; }
/// <summary> /// Deprecated Method for adding a new object to the TrainingSessions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTrainingSessions(TrainingSession trainingSession) { base.AddObject("TrainingSessions", trainingSession); }