public IExceptionOccurrence CreateNew()
		{
			var excOcc = new SqlExceptionOccurrence();
			excOcc.SqlAppointment = this.MasterAppointment;
			ScheduleViewRepository.Context.AddToSqlExceptionOccurrences(excOcc);
			return excOcc;
		}
        public IExceptionOccurrence Copy()
        {
            var exception = new SqlExceptionOccurrence();

            exception.CopyFrom(this);
            return(exception);
        }
Exemple #3
0
        public IExceptionOccurrence CreateNew()
        {
            var excOcc = new SqlExceptionOccurrence();

            excOcc.SqlAppointment = this.MasterAppointment;
            ScheduleViewRepository.Context.AddToSqlExceptionOccurrences(excOcc);
            return(excOcc);
        }
		public IExceptionOccurrence Copy()
		{
			var exception = new SqlExceptionOccurrence();
			exception.CopyFrom(this);
			return exception;
		}
 /// <summary>
 /// Deprecated Method for adding a new object to the SqlExceptionOccurrences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; 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;
 }