private bool FilterTrainingEvents(TrainingEvent entity) { return (entity.ProgramID == this.ProgramID); }
private void DetachTrainingEvents(TrainingEvent entity) { entity.Program = null; }
private void AttachTrainingEvents(TrainingEvent entity) { entity.Program = this; }
private bool FilterTrainingEvent(TrainingEvent entity) { return (entity.EventID == this.EventID); }
/// <summary> /// Create a new TrainingEvent object. /// </summary> /// <param name="eventID">Initial value of the EventID property.</param> /// <param name="programID">Initial value of the ProgramID property.</param> /// <param name="createdByID">Initial value of the CreatedByID property.</param> /// <param name="isPublic">Initial value of the IsPublic property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> public static TrainingEvent CreateTrainingEvent(global::System.Int32 eventID, global::System.Int32 programID, global::System.Int32 createdByID, global::System.Boolean isPublic, global::System.Boolean isActive) { TrainingEvent trainingEvent = new TrainingEvent(); trainingEvent.EventID = eventID; trainingEvent.ProgramID = programID; trainingEvent.CreatedByID = createdByID; trainingEvent.IsPublic = isPublic; trainingEvent.IsActive = isActive; return trainingEvent; }
/// <summary> /// Deprecated Method for adding a new object to the TrainingEvents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTrainingEvents(TrainingEvent trainingEvent) { base.AddObject("TrainingEvents", trainingEvent); }