/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIceanmaintupdateglaccts(ref DataRow row, Iceanmaintupdateglaccts entity) { row.SetField("seqno", entity.seqno); row.SetField("amount", entity.amount); row.SetField("glaccount", entity.glaccount); row.SetField("userfield", entity.userfield); }
public static Iceanmaintupdateglaccts BuildIceanmaintupdateglacctsFromRow(DataRow row) { Iceanmaintupdateglaccts entity = new Iceanmaintupdateglaccts(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.amount = row.IsNull("amount") ? decimal.Zero : row.Field <decimal>("amount"); entity.glaccount = row.IsNull("glaccount") ? string.Empty : row.Field <string>("glaccount"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }