Пример #1
0
 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;
     }
 }
Пример #2
0
 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
     });
 }
Пример #3
0
        public static DB.StateLog ToEntity(DT.StateLog source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.StateLog(); ToEntity(source, entity);

            return(entity);
        }
Пример #4
0
 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
     });
 }
Пример #5
0
 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;
		}
Пример #11
0
 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 };
 }
Пример #12
0
 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;
   }
 }