public IAppointment Copy() { IAppointment appointment = new SqlAppointment(); appointment.CopyFrom(this); return(appointment); }
public void InsertSqlAppointment(SqlAppointment sqlAppointment) { if ((sqlAppointment.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlAppointment, EntityState.Added); } else { this.ObjectContext.SqlAppointments.AddObject(sqlAppointment); } }
public void DeleteSqlAppointment(SqlAppointment sqlAppointment) { if ((sqlAppointment.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlAppointment, EntityState.Deleted); } else { this.ObjectContext.SqlAppointments.Attach(sqlAppointment); this.ObjectContext.SqlAppointments.DeleteObject(sqlAppointment); } }
/// <summary> /// Create a new SqlAppointment object. /// </summary> /// <param name="sqlAppointmentId">Initial value of the SqlAppointmentId 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 SqlAppointment CreateSqlAppointment(global::System.Int32 sqlAppointmentId, global::System.DateTime start, global::System.DateTime end, global::System.Boolean isAllDayEvent, global::System.Int32 importance) { SqlAppointment sqlAppointment = new SqlAppointment(); sqlAppointment.SqlAppointmentId = sqlAppointmentId; sqlAppointment.Start = start; sqlAppointment.End = end; sqlAppointment.IsAllDayEvent = isAllDayEvent; sqlAppointment.Importance = importance; return sqlAppointment; }
/// <summary> /// Deprecated Method for adding a new object to the SqlAppointments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSqlAppointments(SqlAppointment sqlAppointment) { base.AddObject("SqlAppointments", sqlAppointment); }
public SqlRecurrenceRule(SqlAppointment appointment) : this() { this.MasterAppointment = appointment; }
private bool FilterSqlAppointments(SqlAppointment entity) { return (entity.TimeMarkerID == this.TimeMarkersId); }
private void DetachSqlAppointments(SqlAppointment entity) { entity.TimeMarker = null; }
private void AttachSqlAppointments(SqlAppointment entity) { entity.TimeMarker = this; }
private bool FilterSqlAppointments(SqlAppointment entity) { return (entity.CategoryID == this.CategoryID); }
private void DetachSqlAppointments(SqlAppointment entity) { entity.Category = null; }
private void AttachSqlAppointments(SqlAppointment entity) { entity.Category = this; }
private bool FilterSqlAppointment(SqlAppointment entity) { return (entity.SqlAppointmentId == this.MasterSqlAppointmentId); }
public void UpdateSqlAppointment(SqlAppointment currentSqlAppointment) { this.ObjectContext.SqlAppointments.AttachAsModified(currentSqlAppointment); }