public void InsertTimeMarker(TimeMarker timeMarker)
 {
     if ((timeMarker.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(timeMarker, EntityState.Added);
     }
     else
     {
         this.ObjectContext.TimeMarkers.AddObject(timeMarker);
     }
 }
 public void DeleteTimeMarker(TimeMarker timeMarker)
 {
     if ((timeMarker.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(timeMarker, EntityState.Deleted);
     }
     else
     {
         this.ObjectContext.TimeMarkers.Attach(timeMarker);
         this.ObjectContext.TimeMarkers.DeleteObject(timeMarker);
     }
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the TimeMarkers EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTimeMarkers(TimeMarker timeMarker)
 {
     base.AddObject("TimeMarkers", timeMarker);
 }
 /// <summary>
 /// Create a new TimeMarker object.
 /// </summary>
 /// <param name="timeMarkersId">Initial value of the TimeMarkersId property.</param>
 public static TimeMarker CreateTimeMarker(global::System.Int32 timeMarkersId)
 {
     TimeMarker timeMarker = new TimeMarker();
     timeMarker.TimeMarkersId = timeMarkersId;
     return timeMarker;
 }
 private bool FilterTimeMarker(TimeMarker entity)
 {
     return (entity.TimeMarkersId == this.TimeMarkerID);
 }
 public void UpdateTimeMarker(TimeMarker currentTimeMarker)
 {
     this.ObjectContext.TimeMarkers.AttachAsModified(currentTimeMarker);
 }