Пример #1
0
 private bool FilterTrainingEvents(TrainingEvent entity)
 {
     return (entity.ProgramID == this.ProgramID);
 }
Пример #2
0
 private void DetachTrainingEvents(TrainingEvent entity)
 {
     entity.Program = null;
 }
Пример #3
0
 private void AttachTrainingEvents(TrainingEvent entity)
 {
     entity.Program = this;
 }
Пример #4
0
 private bool FilterTrainingEvent(TrainingEvent entity)
 {
     return (entity.EventID == this.EventID);
 }
Пример #5
0
 /// <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;
 }
Пример #6
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TrainingEvents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTrainingEvents(TrainingEvent trainingEvent)
 {
     base.AddObject("TrainingEvents", trainingEvent);
 }