コード例 #1
0
        public IAppointment Copy()
        {
            IAppointment appointment = new SqlExceptionAppointment();

            appointment.CopyFrom(this);
            return(appointment);
        }
コード例 #2
0
        public IAppointment ShallowCopy()
        {
            var appointment = new SqlExceptionAppointment();

            appointment.CopyFrom(this);
            return(appointment);
        }
コード例 #3
0
 public void InsertSqlExceptionAppointment(SqlExceptionAppointment sqlExceptionAppointment)
 {
     if ((sqlExceptionAppointment.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(sqlExceptionAppointment, EntityState.Added);
     }
     else
     {
         this.ObjectContext.SqlExceptionAppointments.AddObject(sqlExceptionAppointment);
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
 private bool FilterSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     return (entity.TimeMarkerID == this.TimeMarkersId);
 }
コード例 #8
0
 private void DetachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.TimeMarker = null;
 }
コード例 #9
0
 private void AttachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.TimeMarker = this;
 }
コード例 #10
0
 private bool FilterSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     return (entity.CategoryID == this.CategoryID);
 }
コード例 #11
0
 private void DetachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.Category = null;
 }
コード例 #12
0
 private void AttachSqlExceptionAppointments(SqlExceptionAppointment entity)
 {
     entity.Category = this;
 }
コード例 #13
0
 private bool FilterSqlExceptionAppointment(SqlExceptionAppointment entity)
 {
     return (entity.ExceptionId == this.SqlExceptionAppointments_ExceptionId);
 }
コード例 #14
0
 public void UpdateSqlExceptionAppointment(SqlExceptionAppointment currentSqlExceptionAppointment)
 {
     this.ObjectContext.SqlExceptionAppointments.AttachAsModified(currentSqlExceptionAppointment);
 }