/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromRssjcomponentscontrol(ref DataRow row, Rssjcomponentscontrol entity) { row.SetField("groupnm", entity.groupnm); row.SetField("groupmodifyfl", entity.groupmodifyfl); row.SetField("jobdesc", entity.jobdesc); row.SetField("rssjcrowid", entity.rssjcrowid.ToByteArray()); row.SetField("mode", entity.mode); row.SetField("updatefl", entity.updatefl); row.SetField("userfield", entity.userfield); }
public static Rssjcomponentscontrol BuildRssjcomponentscontrolFromRow(DataRow row) { Rssjcomponentscontrol entity = new Rssjcomponentscontrol(); entity.groupnm = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm"); entity.groupmodifyfl = row.Field <bool>("groupmodifyfl"); entity.jobdesc = row.IsNull("jobdesc") ? string.Empty : row.Field <string>("jobdesc"); entity.rssjcrowid = row.Field <byte[]>("rssjcrowid").ToStringEncoded(); entity.mode = row.IsNull("mode") ? string.Empty : row.Field <string>("mode"); entity.updatefl = row.Field <bool>("updatefl"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }