/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromEtccdeterrorscorrection(ref DataRow row, Etccdeterrorscorrection entity) { row.SetField("sxxmldoc-rowid", entity.sxxmldocRowid.ToByteArray()); row.SetField("edierowid", entity.edierowid.ToByteArray()); row.SetField("errdesc", entity.errdesc); row.SetField("corrected", entity.corrected); row.SetField("errty", entity.errty); row.SetField("refresherrorcounts", entity.refresherrorcounts); row.SetField("refreshapprovty", entity.refreshapprovty); row.SetField("approvty", entity.approvty); row.SetField("approvmsg", entity.approvmsg); row.SetField("rebuildtt", entity.rebuildtt); row.SetField("rebuildttrefresh", entity.rebuildttrefresh); row.SetField("refreshgrid", entity.refreshgrid); row.SetField("placeeholdques", entity.placeeholdques); row.SetField("userfield", entity.userfield); }
public static Etccdeterrorscorrection BuildEtccdeterrorscorrectionFromRow(DataRow row) { Etccdeterrorscorrection entity = new Etccdeterrorscorrection(); entity.sxxmldocRowid = row.Field <byte[]>("sxxmldoc-rowid").ToStringEncoded(); entity.edierowid = row.Field <byte[]>("edierowid").ToStringEncoded(); entity.errdesc = row.IsNull("errdesc") ? string.Empty : row.Field <string>("errdesc"); entity.corrected = row.Field <bool>("corrected"); entity.errty = row.IsNull("errty") ? string.Empty : row.Field <string>("errty"); entity.refresherrorcounts = row.Field <bool>("refresherrorcounts"); entity.refreshapprovty = row.Field <bool>("refreshapprovty"); entity.approvty = row.IsNull("approvty") ? string.Empty : row.Field <string>("approvty"); entity.approvmsg = row.IsNull("approvmsg") ? string.Empty : row.Field <string>("approvmsg"); entity.rebuildtt = row.Field <bool>("rebuildtt"); entity.rebuildttrefresh = row.Field <bool>("rebuildttrefresh"); entity.refreshgrid = row.Field <bool>("refreshgrid"); entity.placeeholdques = row.IsNull("placeeholdques") ? string.Empty : row.Field <string>("placeeholdques"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }