Example #1
0
 public static void ToEntity(DT.Downtime source, DB.Downtime target)
 {
     if ((source != null) && (target != null))
     {
         target.DowntimeId = source.Id; target.AllDayEvent = source.AllDayEvent; target.EndDate = source.EndDate; target.Recurring = source.Recurring; target.RecurringId = source.RecurringId; target.ResourceId = source.ResourceId; target.StartDate = source.StartDate; target.DowntimeType = source.DowntimeType;
     }
 }
Example #2
0
        public static DB.Downtime ToEntity(DT.Downtime source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.Downtime(); ToEntity(source, entity);

            return(entity);
        }
Example #3
0
 public static DT.Downtime ToDto(DB.Downtime source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.Downtime {
         Id = source.DowntimeId, AllDayEvent = source.AllDayEvent, EndDate = source.EndDate, Recurring = source.Recurring, RecurringId = source.RecurringId, ResourceId = source.ResourceId, StartDate = source.StartDate, DowntimeType = source.DowntimeType
     });
 }
Example #4
0
        public static DA.Downtime ToEntity(this DT.Downtime source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.Downtime();

            source.CopyToEntity(result);
            return(result);
        }
Example #5
0
 public static void CopyToEntity(this DT.Downtime source, DA.Downtime target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.DowntimeId   = source.Id;
     target.AllDayEvent  = source.AllDayEvent;
     target.EndDate      = source.EndDate;
     target.Recurring    = source.Recurring;
     target.RecurringId  = source.RecurringId;
     target.ResourceId   = source.ResourceId;
     target.StartDate    = source.StartDate;
     target.DowntimeType = source.DowntimeType;
 }
Example #6
0
 public static DB.Downtime ToEntity(DT.Downtime source) {
   if (source == null) return null;
   var entity = new DB.Downtime(); ToEntity(source, entity);
   return entity;
 }
Example #7
0
 public static DA.Downtime ToEntity(this DT.Downtime source) {
   if (source == null) return null;
   var result = new DA.Downtime();
   source.CopyToEntity(result);
   return result;
 }
 partial void DeleteDowntime(Downtime instance);
 partial void UpdateDowntime(Downtime instance);
 partial void InsertDowntime(Downtime instance);
		private void detach_UptimeCalendars(Downtime entity)
		{
			this.SendPropertyChanging();
			entity.Resource = null;
		}
Example #12
0
 public static void ToEntity(DT.Downtime source, Downtime target) {
   if ((source != null) && (target != null)) {
     target.DowntimeId = source.Id; target.AllDayEvent = source.AllDayEvent; target.EndDate = source.EndDate; target.Recurring = source.Recurring; target.RecurringId = source.RecurringId; target.ResourceId = source.ResourceId; target.StartDate = source.StartDate;
   }
 }
Example #13
0
 public static DT.Downtime ToDto(Downtime source) {
   if (source == null) return null;
   return new DT.Downtime { Id = source.DowntimeId, AllDayEvent = source.AllDayEvent, EndDate = source.EndDate, Recurring = source.Recurring, RecurringId = source.RecurringId, ResourceId = source.ResourceId, StartDate = source.StartDate };
 }