public IAppointment Copy()
        {
            IAppointment appointment = new SqlExceptionAppointment();

            appointment.CopyFrom(this);
            return(appointment);
        }
        public IAppointment ShallowCopy()
        {
            var appointment = new SqlExceptionAppointment();

            appointment.CopyFrom(this);
            return(appointment);
        }
 public void InsertSqlExceptionAppointment(SqlExceptionAppointment sqlExceptionAppointment)
 {
     if ((sqlExceptionAppointment.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlExceptionAppointment, EntityState.Added);
     }
     else
     {
         this.ObjectContext.SqlExceptionAppointments.AddObject(sqlExceptionAppointment);
     }
 }
 public void DeleteSqlExceptionAppointment(SqlExceptionAppointment sqlExceptionAppointment)
 {
     if ((sqlExceptionAppointment.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlExceptionAppointment, EntityState.Deleted);
     }
     else
     {
         this.ObjectContext.SqlExceptionAppointments.Attach(sqlExceptionAppointment);
         this.ObjectContext.SqlExceptionAppointments.DeleteObject(sqlExceptionAppointment);
     }
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the SqlExceptionAppointments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSqlExceptionAppointments(SqlExceptionAppointment sqlExceptionAppointment)
 {
     base.AddObject("SqlExceptionAppointments", sqlExceptionAppointment);
 }
 /// <summary>
 /// Create a new SqlExceptionAppointment object.
 /// </summary>
 /// <param name="exceptionId">Initial value of the ExceptionId property.</param>
 /// <param name="start">Initial value of the Start property.</param>
 /// <param name="end">Initial value of the End property.</param>
 /// <param name="isAllDayEvent">Initial value of the IsAllDayEvent property.</param>
 /// <param name="importance">Initial value of the Importance property.</param>
 public static SqlExceptionAppointment CreateSqlExceptionAppointment(global::System.Int32 exceptionId, global::System.DateTime start, global::System.DateTime end, global::System.Boolean isAllDayEvent, global::System.Int32 importance)
 {
     SqlExceptionAppointment sqlExceptionAppointment = new SqlExceptionAppointment();
     sqlExceptionAppointment.ExceptionId = exceptionId;
     sqlExceptionAppointment.Start = start;
     sqlExceptionAppointment.End = end;
     sqlExceptionAppointment.IsAllDayEvent = isAllDayEvent;
     sqlExceptionAppointment.Importance = importance;
     return sqlExceptionAppointment;
 }
 private bool FilterSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     return (entity.TimeMarkerID == this.TimeMarkersId);
 }
 private void DetachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.TimeMarker = null;
 }
 private void AttachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.TimeMarker = this;
 }
 private bool FilterSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     return (entity.CategoryID == this.CategoryID);
 }
 private void DetachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.Category = null;
 }
 private void AttachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.Category = this;
 }
 private bool FilterSqlExceptionAppointment(SqlExceptionAppointment entity)
 {
     return (entity.ExceptionId == this.SqlExceptionAppointments_ExceptionId);
 }
 public void UpdateSqlExceptionAppointment(SqlExceptionAppointment currentSqlExceptionAppointment)
 {
     this.ObjectContext.SqlExceptionAppointments.AttachAsModified(currentSqlExceptionAppointment);
 }