Example #1
0
        public IAppointment Copy()
        {
            IAppointment appointment = new SqlAppointment();

            appointment.CopyFrom(this);
            return(appointment);
        }
 public SqlRecurrenceRule(SqlAppointment appointment)
     : this()
 {
     this.MasterAppointment = appointment;
 }
Example #3
0
 public SqlRecurrenceRule(SqlAppointment appointment)
     : this()
 {
     this.MasterAppointment = appointment;
 }
 /// <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&lt;T&gt; property instead.
 /// </summary>
 public void AddToSqlAppointments(SqlAppointment sqlAppointment)
 {
     base.AddObject("SqlAppointments", sqlAppointment);
 }