private bool FilterOccurrences(Occurrence entity)
 {
     return (entity.EventTypeID == this.EventTypeID);
 }
 private void AttachOccurrences(Occurrence entity)
 {
     entity.EventType = this;
 }
 private void DetachOccurrences(Occurrence entity)
 {
     entity.EventType = null;
 }
 private void AttachOccurrences(Occurrence entity)
 {
     entity.TrainingEvent = this;
 }
 private void DetachOccurrences(Occurrence entity)
 {
     entity.TrainingEvent = null;
 }
 private bool FilterOccurrences(Occurrence entity)
 {
     return (entity.RegionID == this.RegionID);
 }
 private void DetachOccurrences(Occurrence entity)
 {
     entity.Region = null;
 }
 private void AttachOccurrences(Occurrence entity)
 {
     entity.Region = this;
 }
Esempio n. 9
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Occurrences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOccurrences(Occurrence occurrence)
 {
     base.AddObject("Occurrences", occurrence);
 }
Esempio n. 10
0
 /// <summary>
 /// Create a new Occurrence object.
 /// </summary>
 /// <param name="occurrenceID">Initial value of the OccurrenceID property.</param>
 /// <param name="scheduleFrom">Initial value of the ScheduleFrom property.</param>
 /// <param name="createdByEmpID">Initial value of the CreatedByEmpID property.</param>
 /// <param name="eventID">Initial value of the EventID property.</param>
 /// <param name="occurrenceName">Initial value of the OccurrenceName property.</param>
 /// <param name="eventTypeID">Initial value of the EventTypeID property.</param>
 public static Occurrence CreateOccurrence(global::System.Int32 occurrenceID, global::System.DateTime scheduleFrom, global::System.Int32 createdByEmpID, global::System.Int32 eventID, global::System.String occurrenceName, global::System.Int32 eventTypeID)
 {
     Occurrence occurrence = new Occurrence();
     occurrence.OccurrenceID = occurrenceID;
     occurrence.ScheduleFrom = scheduleFrom;
     occurrence.CreatedByEmpID = createdByEmpID;
     occurrence.EventID = eventID;
     occurrence.OccurrenceName = occurrenceName;
     occurrence.EventTypeID = eventTypeID;
     return occurrence;
 }