/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOeirccauthorize(ref DataRow row, Oeirccauthorize entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("mediacd", entity.mediacd); row.SetField("enccardno", entity.enccardno); row.SetField("fullcardno", entity.fullcardno); row.SetField("transcd", entity.transcd); row.SetField("seqno", entity.seqno); row.SetField("holdforauth", entity.holdforauth); row.SetField("userfield", entity.userfield); }
public static Oeirccauthorize BuildOeirccauthorizeFromRow(DataRow row) { Oeirccauthorize entity = new Oeirccauthorize(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.mediacd = row.IsNull("mediacd") ? 0 : row.Field <int>("mediacd"); entity.enccardno = row.IsNull("enccardno") ? string.Empty : row.Field <string>("enccardno"); entity.fullcardno = row.IsNull("fullcardno") ? string.Empty : row.Field <string>("fullcardno"); entity.transcd = row.IsNull("transcd") ? string.Empty : row.Field <string>("transcd"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.holdforauth = row.Field <bool>("holdforauth"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }