new public static ScheduleHistoryItem Convert(DataRow dataRow) { if (dataRow == null) { return(null); } DataRowContainer row = new DataRowContainer(dataRow); ScheduleHistoryItem obj = new ScheduleHistoryItem(); obj.ScheduleHistoryId = row.Int("ScheduleHistoryId"); obj.ScheduleId = row.Int("ScheduleId"); obj.Server = row.String("Server"); obj.StartTime = row.DateTime("StartTime"); obj.EndTime = row.DateTime("EndTime"); obj.Succeed = row.Bool("Succeed", false); obj.NextStart = row.DateTime("NextStart"); obj.LogNotes = row.String("LogNotes"); obj.Status = row.Int("Status", 2); obj.CreateTime = row.DateTime("CreateTime"); return(obj); }