public IExceptionOccurrence Copy() { var exception = new SqlExceptionOccurrence(); exception.CopyFrom(this); return(exception); }
public IExceptionOccurrence CreateNew() { var excOcc = new SqlExceptionOccurrence(); excOcc.SqlAppointment = this.MasterAppointment; ScheduleViewRepository.Context.SqlExceptionOccurrences.Add(excOcc); return excOcc; }
public IExceptionOccurrence CreateNew() { var excOcc = new SqlExceptionOccurrence(); excOcc.SqlAppointment = this.MasterAppointment; ScheduleViewRepository.Context.SqlExceptionOccurrences.Add(excOcc); return(excOcc); }
public void InsertSqlExceptionOccurrence(SqlExceptionOccurrence sqlExceptionOccurrence) { if ((sqlExceptionOccurrence.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlExceptionOccurrence, EntityState.Added); } else { this.ObjectContext.SqlExceptionOccurrences.AddObject(sqlExceptionOccurrence); } }
public void DeleteSqlExceptionOccurrence(SqlExceptionOccurrence sqlExceptionOccurrence) { if ((sqlExceptionOccurrence.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlExceptionOccurrence, EntityState.Deleted); } else { this.ObjectContext.SqlExceptionOccurrences.Attach(sqlExceptionOccurrence); this.ObjectContext.SqlExceptionOccurrences.DeleteObject(sqlExceptionOccurrence); } }
/// <summary> /// Deprecated Method for adding a new object to the SqlExceptionOccurrences EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSqlExceptionOccurrences(SqlExceptionOccurrence sqlExceptionOccurrence) { base.AddObject("SqlExceptionOccurrences", sqlExceptionOccurrence); }
/// <summary> /// Create a new SqlExceptionOccurrence object. /// </summary> /// <param name="exceptionId">Initial value of the ExceptionId property.</param> /// <param name="masterSqlAppointmentId">Initial value of the MasterSqlAppointmentId property.</param> /// <param name="exceptionDate">Initial value of the ExceptionDate property.</param> public static SqlExceptionOccurrence CreateSqlExceptionOccurrence(global::System.Int32 exceptionId, global::System.Int32 masterSqlAppointmentId, global::System.DateTime exceptionDate) { SqlExceptionOccurrence sqlExceptionOccurrence = new SqlExceptionOccurrence(); sqlExceptionOccurrence.ExceptionId = exceptionId; sqlExceptionOccurrence.MasterSqlAppointmentId = masterSqlAppointmentId; sqlExceptionOccurrence.ExceptionDate = exceptionDate; return sqlExceptionOccurrence; }
private bool FilterSqlExceptionOccurrence(SqlExceptionOccurrence entity) { return (entity.ExceptionId == this.ExceptionId); }
private bool FilterSqlExceptionOccurrences(SqlExceptionOccurrence entity) { return (entity.MasterSqlAppointmentId == this.SqlAppointmentId); }
private void DetachSqlExceptionOccurrences(SqlExceptionOccurrence entity) { entity.SqlAppointment = null; }
private void AttachSqlExceptionOccurrences(SqlExceptionOccurrence entity) { entity.SqlAppointment = this; }
public void UpdateSqlExceptionOccurrence(SqlExceptionOccurrence currentSqlExceptionOccurrence) { this.ObjectContext.SqlExceptionOccurrences.AttachAsModified(currentSqlExceptionOccurrence); }
public IExceptionOccurrence Copy() { var exception = new SqlExceptionOccurrence(); exception.CopyFrom(this); return exception; }