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; } }
public static DB.Downtime ToEntity(DT.Downtime source) { if (source == null) { return(null); } var entity = new DB.Downtime(); ToEntity(source, entity); return(entity); }
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 }); }
public static DA.Downtime ToEntity(this DT.Downtime source) { if (source == null) { return(null); } var result = new DA.Downtime(); source.CopyToEntity(result); return(result); }
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; }
public static DB.Downtime ToEntity(DT.Downtime source) { if (source == null) return null; var entity = new DB.Downtime(); ToEntity(source, entity); return entity; }
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; }
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; } }
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 }; }