public static void ToEntity(DT.StateLog source, DB.StateLog target) { if ((source != null) && (target != null)) { target.StateLogId = source.Id; target.DateTime = source.DateTime; target.Exception = source.Exception; target.TaskId = source.TaskId; target.SlaveId = source.SlaveId; target.State = Convert.ToEntity(source.State); target.UserId = source.UserId; } }
public static DT.StateLog ToDto(DB.StateLog source) { if (source == null) { return(null); } return(new DT.StateLog { Id = source.StateLogId, DateTime = source.DateTime, Exception = source.Exception, TaskId = source.TaskId, SlaveId = source.SlaveId, State = Convert.ToDto(source.State), UserId = source.UserId }); }
public static DB.StateLog ToEntity(DT.StateLog source) { if (source == null) { return(null); } var entity = new DB.StateLog(); ToEntity(source, entity); return(entity); }
public static DT.StateLog ToDto(this DA.StateLog source) { return(new DT.StateLog { Id = source.StateLogId, State = source.State.ToDto(), DateTime = source.DateTime, TaskId = source.TaskId, UserId = source.UserId, SlaveId = source.SlaveId, Exception = source.Exception }); }
public static DB.StateLog ToEntity(DT.StateLog source) { if (source == null) return null; var entity = new DB.StateLog(); ToEntity(source, entity); return entity; }
partial void UpdateStateLog(StateLog instance);
partial void DeleteStateLog(StateLog instance);
partial void InsertStateLog(StateLog instance);
private void detach_StateLogs(StateLog entity) { this.SendPropertyChanging(); entity.Task = null; }
private void attach_StateLogs(StateLog entity) { this.SendPropertyChanging(); entity.Task = this; }
public static DT.StateLog ToDto(StateLog source) { if (source == null) return null; return new DT.StateLog { Id = source.StateLogId, DateTime = source.DateTime, Exception = source.Exception, JobId = source.JobId, SlaveId = source.SlaveId, State = source.State, UserId = source.UserId }; }
public static void ToEntity(DT.StateLog source, StateLog target) { if ((source != null) && (target != null)) { target.StateLogId = source.Id; target.DateTime = source.DateTime; target.Exception = source.Exception; target.JobId = source.JobId; target.SlaveId = source.SlaveId; target.State = source.State; target.UserId = source.UserId; } }