/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcsecsuperxrefcreate(ref DataRow row, Icsecsuperxrefcreate entity) { row.SetField("prod", entity.prod); row.SetField("altprod", entity.altprod); row.SetField("addmodefl", entity.addmodefl); row.SetField("rectype", entity.rectype); row.SetField("keyno", entity.keyno); row.SetField("createicsldefault", entity.createicsldefault); row.SetField("userfield", entity.userfield); }
public static Icsecsuperxrefcreate BuildIcsecsuperxrefcreateFromRow(DataRow row) { Icsecsuperxrefcreate entity = new Icsecsuperxrefcreate(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.altprod = row.IsNull("altprod") ? string.Empty : row.Field <string>("altprod"); entity.addmodefl = row.Field <bool>("addmodefl"); entity.rectype = row.IsNull("rectype") ? string.Empty : row.Field <string>("rectype"); entity.keyno = row.IsNull("keyno") ? 0 : row.Field <int>("keyno"); entity.createicsldefault = row.Field <bool>("createicsldefault"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }